jffs2: Wake GC thread when there are blocks to be erased
[deliverable/linux.git] / fs / jffs2 / nodemgmt.c
index 08e2c69fc147a4dc93bb7fcb8e7c76373b773288..5ab5c8521cdf9576b308ba7237015438a82a9887 100644 (file)
@@ -744,6 +744,10 @@ int jffs2_thread_should_wake(struct jffs2_sb_info *c)
        int nr_very_dirty = 0;
        struct jffs2_eraseblock *jeb;
 
+       if (!list_empty(&c->erase_complete_list) ||
+           !list_empty(&c->erase_pending_list))
+               return 1;
+
        if (c->unchecked_size) {
                D1(printk(KERN_DEBUG "jffs2_thread_should_wake(): unchecked_size %d, checked_ino #%d\n",
                          c->unchecked_size, c->checked_ino));
This page took 0.035857 seconds and 5 git commands to generate.