Lines Matching refs:mdatalen
299 char *mdata = NULL, mdatalen = 0; in jffs2_garbage_collect_metadata() local
308 mdatalen = sizeof(dev); in jffs2_garbage_collect_metadata()
309 D1(printk(KERN_DEBUG "jffs2_garbage_collect_metadata(): Writing %d bytes of kdev_t\n", mdatalen)); in jffs2_garbage_collect_metadata()
311 mdatalen = fn->size; in jffs2_garbage_collect_metadata()
317 ret = jffs2_read_dnode(c, fn, mdata, 0, mdatalen); in jffs2_garbage_collect_metadata()
323 …tk(KERN_DEBUG "jffs2_garbage_collect_metadata(): Writing %d bites of symlink target\n", mdatalen)); in jffs2_garbage_collect_metadata()
327 ret = jffs2_reserve_space_gc(c, sizeof(ri) + mdatalen, &phys_ofs, &alloclen); in jffs2_garbage_collect_metadata()
330 sizeof(ri)+ mdatalen, ret); in jffs2_garbage_collect_metadata()
337 ri.totlen = sizeof(ri) + mdatalen; in jffs2_garbage_collect_metadata()
350 ri.csize = mdatalen; in jffs2_garbage_collect_metadata()
351 ri.dsize = mdatalen; in jffs2_garbage_collect_metadata()
354 ri.data_crc = crc32(0, mdata, mdatalen); in jffs2_garbage_collect_metadata()
356 new_fn = jffs2_write_dnode(inode, &ri, mdata, mdatalen, phys_ofs, NULL); in jffs2_garbage_collect_metadata()