]> git.baikalelectronics.ru Git - 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)
committerChris Mason <chris.mason@oracle.com>
Thu, 28 Jan 2010 21:20:39 +0000 (16:20 -0500)
commit4d73ebf6f8e2ff9206dd6e31edbef6d57333fdf0
treea111740f879f5f0cbbcaf079c2500535263c1278
parent363e82fbd165e1017182b7c984ab5a376bb6b2ce
Btrfs: run orphan cleanup on default fs root

This patch revert's commit

605a9f5494a07c98be1828ccac494c80d5233d3d

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>
fs/btrfs/disk-io.c
fs/btrfs/inode.c