mtd/fs/jffs2 nodemgmt.c,1.104,1.105
David Woodhouse
dwmw2 at infradead.org
Sun Nov 2 07:32:37 EST 2003
- Previous message: mtd/fs/jffs2 gc.c,1.122,1.123
- Next message: mtd/fs/jffs2 Makefile,1.25.2.1,1.25.2.2 dir.c,1.45.2.7,1.45.2.8
erase.c,1.24,1.24.2.1 file.c,1.58.2.6,1.58.2.7
gc.c,1.52.2.5,1.52.2.6 read.c,1.13.2.1,1.13.2.2
readinode.c,1.58.2.6,1.58.2.7 scan.c,1.51.2.3,1.51.2.4
write.c,1.30.2.1,1.30.2.2 crc32.c,1.3,NONE crc32.h,1.3,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv16759
Modified Files:
nodemgmt.c
Log Message:
remove debugging
Index: nodemgmt.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodemgmt.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -r1.104 -r1.105
--- nodemgmt.c 16 Oct 2003 10:22:50 -0000 1.104
+++ nodemgmt.c 2 Nov 2003 12:32:34 -0000 1.105
@@ -499,30 +499,6 @@
if (jffs2_wbuf_dirty(c)) {
D1(printk(KERN_DEBUG "...and adding to erasable_pending_wbuf_list\n"));
list_add_tail(&jeb->list, &c->erasable_pending_wbuf_list);
-#if 0 /* This check was added to allow us to find places where we added nodes to the lists
- after dropping the alloc_sem, and it did that just fine. But it also caused us to
- lock the alloc_sem in other places, like clear_inode(), when we wouldn't otherwise
- have needed to. So I suspect it's outlived its usefulness. Thomas? */
-
- /* We've changed the rules slightly. After
- writing a node you now mustn't drop the
- alloc_sem before you've finished all the
- list management - this is so that when we
- get here, we know that no other nodes have
- been written, and the above check on wbuf
- is valid - wbuf_len is nonzero IFF the node
- which obsoletes this node is still in the
- wbuf.
-
- So we BUG() if that new rule is broken, to
- make sure we catch it and fix it.
- */
- if (!down_trylock(&c->alloc_sem)) {
- up(&c->alloc_sem);
- printk(KERN_CRIT "jffs2_mark_node_obsolete() called with wbuf active but alloc_sem not locked!\n");
- BUG();
- }
-#endif
} else {
if (jiffies & 127) {
/* Most of the time, we just erase it immediately. Otherwise we
- Previous message: mtd/fs/jffs2 gc.c,1.122,1.123
- Next message: mtd/fs/jffs2 Makefile,1.25.2.1,1.25.2.2 dir.c,1.45.2.7,1.45.2.8
erase.c,1.24,1.24.2.1 file.c,1.58.2.6,1.58.2.7
gc.c,1.52.2.5,1.52.2.6 read.c,1.13.2.1,1.13.2.2
readinode.c,1.58.2.6,1.58.2.7 scan.c,1.51.2.3,1.51.2.4
write.c,1.30.2.1,1.30.2.2 crc32.c,1.3,NONE crc32.h,1.3,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list