mtd/fs/jffs2 wbuf.c,1.13,1.14
gleixner at infradead.org
gleixner at infradead.org
Mon Aug 19 10:33:29 EDT 2002
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv26116
Modified Files:
wbuf.c
Log Message:
check pending timer in wbuf_process
Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/wbuf.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- wbuf.c 8 Aug 2002 11:04:40 -0000 1.13
+++ wbuf.c 19 Aug 2002 14:33:27 -0000 1.14
@@ -79,6 +79,12 @@
struct jffs2_sb_info *c = (struct jffs2_sb_info *) data;
D1(printk(KERN_DEBUG "jffs2_wbuf_process() entered\n"));
+
+ /* Check, if the timer is active again */
+ if (timer_pending (&c->wbuf_timer)) {
+ D1(printk (KERN_DEBUG "Nothing to do, timer is active again\n"));
+ return;
+ }
if (down_trylock(&c->alloc_sem)) {
/* If someone else has the alloc_sem, they're about to
More information about the linux-mtd-cvs
mailing list