]> err.no Git - linux-2.6/blobdiff - fs/jffs2/gc.c
[CIFS] Make sec=none force an anonymous mount
[linux-2.6] / fs / jffs2 / gc.c
index f59b147661c9ac45b0249e4ba0f5dcf69508658a..3a3cf225981f5a28daa3d2dc5fbce4e26ccf9c9d 100644 (file)
@@ -165,6 +165,7 @@ int jffs2_garbage_collect_pass(struct jffs2_sb_info *c)
                        D1(printk(KERN_DEBUG "Skipping check of ino #%d with nlink zero\n",
                                  ic->ino));
                        spin_unlock(&c->inocache_lock);
+                       jffs2_xattr_delete_inode(c, ic);
                        continue;
                }
                switch(ic->state) {
@@ -837,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;