Lines Matching refs:mdatalen
746 int mdatalen = 0; in jffs2_garbage_collect_metadata() local
753 mdatalen = jffs2_encode_dev(&dev, JFFS2_F_I_RDEV(f)); in jffs2_garbage_collect_metadata()
756 __func__, mdatalen); in jffs2_garbage_collect_metadata()
758 mdatalen = fn->size; in jffs2_garbage_collect_metadata()
764 ret = jffs2_read_dnode(c, f, fn, mdata, 0, mdatalen); in jffs2_garbage_collect_metadata()
772 __func__, mdatalen); in jffs2_garbage_collect_metadata()
776 ret = jffs2_reserve_space_gc(c, sizeof(ri) + mdatalen, &alloclen, in jffs2_garbage_collect_metadata()
780 sizeof(ri) + mdatalen, ret); in jffs2_garbage_collect_metadata()
795 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata()
808 ri.csize = cpu_to_je32(mdatalen); in jffs2_garbage_collect_metadata()
809 ri.dsize = cpu_to_je32(mdatalen); in jffs2_garbage_collect_metadata()
812 ri.data_crc = cpu_to_je32(crc32(0, mdata, mdatalen)); in jffs2_garbage_collect_metadata()
814 new_fn = jffs2_write_dnode(c, f, &ri, mdata, mdatalen, ALLOC_GC); in jffs2_garbage_collect_metadata()