• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jffs2/

Lines Matching refs:wbuf

57 	/* Look to see if the inode in question is pending in the wbuf */
252 c->wbuf, c->wbuf_pagesize, 0);
264 /* Recover from failure to write wbuf. Recover the nodes up to the
265 * wbuf, not the one which we were starting to try to write. */
289 node which ends before the wbuf starts, or which is obsolete. */
324 dbg_noderef("wbuf recover %08x-%08x (%d bytes in %d nodes)\n",
334 printk(KERN_CRIT "Malloc failure in wbuf recovery. Data loss ensues.\n");
348 printk(KERN_CRIT "Old data are already lost in wbuf recovery. Data loss ensues.\n");
366 /* It wasn't. Go on and try to recover nodes complete in the wbuf */
368 dbg_noderef("wbuf now recover %08x-%08x (%d bytes in %d nodes)\n",
372 /* Read succeeded. Copy the remaining data from the wbuf */
373 memcpy(buf + (c->wbuf_ofs - start), c->wbuf, end - c->wbuf_ofs);
377 Either 'buf' contains the data, or we find it in the wbuf */
382 printk(KERN_WARNING "Failed to allocate space for wbuf recovery. Data loss ensues.\n");
392 printk(KERN_WARNING "Failed to allocate node refs for wbuf recovery. Data loss ensues.\n");
401 that this is just because the wbuf itself is completely
405 unsigned char *rewrite_buf = buf?:c->wbuf;
408 D1(printk(KERN_DEBUG "Write 0x%x bytes at 0x%08x in wbuf recover\n",
426 printk(KERN_CRIT "Recovery of wbuf failed due to a second write error\n");
434 printk(KERN_NOTICE "Recovery of wbuf succeeded to %08x\n", ofs);
438 memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len);
443 memcpy(c->wbuf, buf, end-start);
445 memmove(c->wbuf, c->wbuf + (start - c->wbuf_ofs), end - start);
510 (void *)(buf?:c->wbuf) + (ref_offset(raw) - start));
557 D1(printk(KERN_DEBUG "wbuf recovery completed OK. wbuf_ofs 0x%08x, len 0x%x\n", c->wbuf_ofs, c->wbuf_len));
587 if (!c->wbuf_len) /* already checked c->wbuf above */
605 memset(c->wbuf + c->wbuf_len, 0, c->wbuf_pagesize - c->wbuf_len);
608 struct jffs2_unknown_node *padnode = (void *)(c->wbuf + c->wbuf_len);
629 ret = c->mtd->write(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, &retlen, c->wbuf);
639 } else if ((ret = jffs2_verify_write(c, c->wbuf, c->wbuf_ofs))) {
657 printk(KERN_CRIT "jffs2_flush_wbuf(): Accounting error. wbuf at 0x%08x has 0x%03x bytes, 0x%03x left.\n",
679 memset(c->wbuf,0xff,c->wbuf_pagesize);
698 if (!c->wbuf)
703 D1(printk(KERN_DEBUG "Ino #%d not pending in wbuf. Returning\n", ino));
716 /* retry flushing wbuf in case jffs2_wbuf_recover
717 left some data in the wbuf */
734 /* retry flushing wbuf in case jffs2_wbuf_recover
735 left some data in the wbuf */
755 if (!c->wbuf)
760 /* retry - maybe wbuf recover left some data in wbuf. */
776 memcpy(c->wbuf + c->wbuf_len, buf, len);
800 memset(c->wbuf,0xff,c->wbuf_pagesize);
814 "causes flush of wbuf at 0x%08x\n",
830 printk(KERN_CRIT "wbuf was previously %08x-%08x\n",
888 * If there's a remainder in the wbuf and it's a non-GC write,
889 * remember that the wbuf affects this ino
908 * At this point we have no problem, c->wbuf is empty. However
998 memcpy(buf+orbf,c->wbuf+owbf,lwbf);
1169 c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL);
1170 if (!c->wbuf)
1175 kfree(c->wbuf);
1183 kfree(c->wbuf);
1195 kfree(c->wbuf);
1231 c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL);
1232 if (!c->wbuf)
1239 kfree(c->wbuf);
1253 kfree(c->wbuf);
1266 c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL);
1267 if (!c->wbuf)
1273 kfree(c->wbuf);
1284 kfree(c->wbuf);
1298 c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL);
1299 if (!c->wbuf)
1308 kfree(c->wbuf);