From: NeilBrown Date: Mon, 9 Aug 2010 10:17:09 +0000 (+1000) Subject: Don't release an orphan just because an inode cannot be found. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=e9fba1d77fb634acd5bfd1f1c99c09a60a6924d2;p=LaFS.git Don't release an orphan just because an inode cannot be found. 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 --- diff --git a/orphan.c b/orphan.c index 47963c1..8877a55 100644 --- 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) {