Lines Matching refs:csize

40 	BUG_ON(tn->csize == 0);  in check_node_data()
44 len = tn->csize; in check_node_data()
51 if (adj >= tn->csize) { in check_node_data()
53 ref_offset(ref), tn->csize, ofs); in check_node_data()
62 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len); in check_node_data()
69 JFFS2_WARNING("MTD point returned len too short: %zu instead of %u.\n", retlen, tn->csize); in check_node_data()
718 uint32_t len, csize; in read_dnode() local
740 csize = je32_to_cpu(rd->csize); in read_dnode()
747 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) { in read_dnode()
754 if (jffs2_is_writebuffered(c) && csize != 0) { in read_dnode()
795 len = min_t(uint32_t, rdlen - sizeof(*rd), csize); in read_dnode()
798 dbg_readinode("Calculates CRC (%#08x) for %d bytes, csize %d\n", tn->partial_crc, len, csize); in read_dnode()
802 if (len >= csize && unlikely(tn->partial_crc != je32_to_cpu(rd->data_crc))) { in read_dnode()
809 } else if (csize == 0) { in read_dnode()
842 tn->csize = csize; in read_dnode()
851 if (rd->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(rd->dsize) && csize) in read_dnode()
852 tn->fn->size = csize; in read_dnode()
858 je32_to_cpu(rd->offset), je32_to_cpu(rd->dsize), csize); in read_dnode()
1268 uint32_t csize = je32_to_cpu(latest_node->csize); in jffs2_do_read_inode_internal() local
1269 if (csize > JFFS2_MAX_NAME_LEN) in jffs2_do_read_inode_internal()
1271 f->target = kmalloc(csize + 1, GFP_KERNEL); in jffs2_do_read_inode_internal()
1273 JFFS2_ERROR("can't allocate %u bytes of memory for the symlink target path cache\n", csize); in jffs2_do_read_inode_internal()
1278 csize, &retlen, (char *)f->target); in jffs2_do_read_inode_internal()
1280 if (ret || retlen != csize) { in jffs2_do_read_inode_internal()
1281 if (retlen != csize) in jffs2_do_read_inode_internal()
1288 f->target[csize] = '\0'; in jffs2_do_read_inode_internal()