]> git.neil.brown.name Git - LaFS.git/commitdiff
unmount: push orphan handling along.
authorNeilBrown <neilb@suse.de>
Thu, 3 Sep 2009 05:28:21 +0000 (15:28 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 3 Sep 2009 05:28:21 +0000 (15:28 +1000)
Just waiting for the thread to do it doesn't seem to be
enough.

super.c

diff --git a/super.c b/super.c
index 9a48b484a837cff4cd96094c95359f9b57b8fd1d..7ef01fc5eac98911bef208f8d13344111e501f1b 100644 (file)
--- a/super.c
+++ b/super.c
@@ -684,7 +684,7 @@ lafs_put_super(struct super_block *sb)
                 * subordinate fs
                 */
                wait_event(fs->async_complete,
-                          list_empty(&fs->pending_orphans));
+                          (lafs_run_orphans(fs), list_empty(&fs->pending_orphans)));
                lafs_checkpoint_lock(fs);
                /* Don't incorporate any more segusage/quota updates. */
                lafs_checkpoint_start(fs);