Lines Matching refs:mdatalen
766 int mdatalen = 0; in jffs2_garbage_collect_metadata() local
773 mdatalen = jffs2_encode_dev(&dev, JFFS2_F_I_RDEV(f)); in jffs2_garbage_collect_metadata()
776 __func__, mdatalen); in jffs2_garbage_collect_metadata()
778 mdatalen = fn->size; in jffs2_garbage_collect_metadata()
784 ret = jffs2_read_dnode(c, f, fn, mdata, 0, mdatalen); in jffs2_garbage_collect_metadata()
792 __func__, mdatalen); in jffs2_garbage_collect_metadata()
796 ret = jffs2_reserve_space_gc(c, sizeof(ri) + mdatalen, &alloclen, in jffs2_garbage_collect_metadata()
800 sizeof(ri) + mdatalen, ret); in jffs2_garbage_collect_metadata()
815 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata()
828 ri.csize = cpu_to_je32(mdatalen); in jffs2_garbage_collect_metadata()
829 ri.dsize = cpu_to_je32(mdatalen); in jffs2_garbage_collect_metadata()
832 ri.data_crc = cpu_to_je32(crc32(0, mdata, mdatalen)); in jffs2_garbage_collect_metadata()
834 new_fn = jffs2_write_dnode(c, f, &ri, mdata, mdatalen, ALLOC_GC); in jffs2_garbage_collect_metadata()