• Josef Bacik's avatar
    Btrfs: run orphan cleanup on default fs root · e3acc2a6
    Josef Bacik authored
    This patch revert's commit
    
    6c090a11
    
    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: default avatarJosef Bacik <josef@redhat.com>
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    e3acc2a6
disk-io.c 69.1 KB