Lines Matching refs:mdatalen
91 int mdatalen = 0; in jffs2_setattr() local
110 mdatalen = sizeof(dev); in jffs2_setattr()
111 D1(printk(KERN_DEBUG "jffs2_setattr(): Writing %d bytes of kdev_t\n", mdatalen)); in jffs2_setattr()
113 mdatalen = f->metadata->size; in jffs2_setattr()
117 ret = jffs2_read_dnode(c, f->metadata, mdata, 0, mdatalen); in jffs2_setattr()
122 D1(printk(KERN_DEBUG "jffs2_setattr(): Writing %d bytes of symlink target\n", mdatalen)); in jffs2_setattr()
132 ret = jffs2_reserve_space(c, sizeof(*ri) + mdatalen, &phys_ofs, &alloclen, ALLOC_NORMAL); in jffs2_setattr()
144 ri->totlen = sizeof(*ri) + mdatalen; in jffs2_setattr()
164 ri->csize = ri->dsize = mdatalen; in jffs2_setattr()
173 if (mdatalen) in jffs2_setattr()
174 ri->data_crc = crc32(0, mdata, mdatalen); in jffs2_setattr()
178 new_metadata = jffs2_write_dnode(inode, ri, mdata, mdatalen, phys_ofs, NULL); in jffs2_setattr()