]> git.neil.brown.name Git - LaFS.git/commitdiff
Don't release an orphan just because an inode cannot be found.
authorNeilBrown <neilb@suse.de>
Mon, 9 Aug 2010 10:17:09 +0000 (20:17 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 9 Aug 2010 10:17:09 +0000 (20:17 +1000)
This is over-reacting.  We could be between last_iput and setting
I_Delete for example, so orphan_release would be premature and wrong.

Signed-off-by: NeilBrown <neilb@suse.de>
orphan.c

index 47963c1e6fb3db6fe88172897dc5fc3b86ada3c1..8877a55ae9feb9626e7b496665afd5c1bad43f82 100644 (file)
--- a/orphan.c
+++ b/orphan.c
@@ -502,7 +502,7 @@ long lafs_run_orphans(struct fs *fs)
                spin_unlock(&fs->lock);
 
                if (!ino)
-                       lafs_orphan_release(fs, db, NULL);
+                       lafs_orphan_forget(fs, db);
                else {
                        int err = -ERESTARTSYS;
                        while (err == -ERESTARTSYS) {