fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / fs / jffs2 / gc.c
index daff334..3a3cf22 100644 (file)
@@ -838,6 +838,8 @@ static int jffs2_garbage_collect_deletion_dirent(struct jffs2_sb_info *c, struct
 
                for (raw = f->inocache->nodes; raw != (void *)f->inocache; raw = raw->next_in_ino) {
 
+                       cond_resched();
+
                        /* We only care about obsolete ones */
                        if (!(ref_obsolete(raw)))
                                continue;