Lines Matching refs:mdatalen
40 int mdatalen = 0; in jffs2_do_setattr() local
55 mdatalen = jffs2_encode_dev(&dev, inode->i_rdev); in jffs2_do_setattr()
58 __func__, mdatalen); in jffs2_do_setattr()
61 mdatalen = f->metadata->size; in jffs2_do_setattr()
67 ret = jffs2_read_dnode(c, f, f->metadata, mdata, 0, mdatalen); in jffs2_do_setattr()
75 __func__, mdatalen); in jffs2_do_setattr()
85 ret = jffs2_reserve_space(c, sizeof(*ri) + mdatalen, &alloclen, in jffs2_do_setattr()
98 ri->totlen = cpu_to_je32(sizeof(*ri) + mdatalen); in jffs2_do_setattr()
121 ri->csize = ri->dsize = cpu_to_je32(mdatalen); in jffs2_do_setattr()
134 if (mdatalen) in jffs2_do_setattr()
135 ri->data_crc = cpu_to_je32(crc32(0, mdata, mdatalen)); in jffs2_do_setattr()
139 new_metadata = jffs2_write_dnode(c, f, ri, mdata, mdatalen, alloc_type); in jffs2_do_setattr()