]> git.ipfire.org Git - people/arne_f/kernel.git/commit
Btrfs: run orphan cleanup on default fs root
authorJosef Bacik <josef@redhat.com>
Tue, 26 Jan 2010 14:30:53 +0000 (14:30 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:20:07 +0000 (13:20 -0700)
commit8766aeadf9ad4dbabfee5176eca09e38c950c191
tree0ab528458129f228ebd0ccd1e674b108be637b85
parentaeda1ce85788fe3a1dfa65d6b616c3d7c83dfc2d
Btrfs: run orphan cleanup on default fs root

commit e3acc2a6850efff647f1c5458524eb3a8bcba20a upstream.

This patch revert's commit

6c090a11e1c403b727a6a8eff0b97d5fb9e95cb5

Since it introduces this problem where we can run orphan cleanup on a
volume that can have orphan entries re-added.  Instead of my original
fix, Yan Zheng pointed out that we can just revert my original fix and
then run the orphan cleanup in open_ctree after we look up the fs_root.
I have tested this with all the tests that gave me problems and this
patch fixes both problems.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/disk-io.c
fs/btrfs/inode.c