• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/jffs2/

Lines Matching refs:csize

38 	BUG_ON(tn->csize == 0);
49 if (len >= tn->csize) {
51 ref_offset(ref), tn->csize, ofs);
56 len = tn->csize - len;
59 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len);
66 if (!err && retlen < tn->csize) {
67 JFFS2_WARNING("MTD point returned len too short: %zu instead of %u.\n", retlen, tn->csize);
688 uint32_t len, csize;
710 csize = je32_to_cpu(rd->csize);
717 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) {
724 if (jffs2_is_writebuffered(c) && csize != 0) {
765 len = min_t(uint32_t, rdlen - sizeof(*rd), csize);
768 dbg_readinode("Calculates CRC (%#08x) for %d bytes, csize %d\n", tn->partial_crc, len, csize);
772 if (len >= csize && unlikely(tn->partial_crc != je32_to_cpu(rd->data_crc))) {
779 } else if (csize == 0) {
812 tn->csize = csize;
820 csize/dsize swapped. Deal with it */
821 if (rd->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(rd->dsize) && csize)
822 tn->fn->size = csize;
826 dbg_readinode("dnode @%08x: ver %u, offset %#04x, dsize %#04x, csize %#04x\n",
827 ref_offset(ref), je32_to_cpu(rd->version), je32_to_cpu(rd->offset), je32_to_cpu(rd->dsize), csize);
1231 f->target = kmalloc(je32_to_cpu(latest_node->csize) + 1, GFP_KERNEL);
1233 JFFS2_ERROR("can't allocate %d bytes of memory for the symlink target path cache\n", je32_to_cpu(latest_node->csize));
1240 je32_to_cpu(latest_node->csize), &retlen, (char *)f->target);
1242 if (ret || retlen != je32_to_cpu(latest_node->csize)) {
1243 if (retlen != je32_to_cpu(latest_node->csize))
1252 f->target[je32_to_cpu(latest_node->csize)] = '\0';