• A
    btrfs: keep orphans for subvolume deletion · f8e9e0b0
    Arne Jansen 提交于
    Since we have the free space caches, btrfs_orphan_cleanup also runs for
    the tree_root. Unfortunately this also cleans up the orphans used to mark
    subvol deletions in progress.
    
    Currently if a subvol deletion gets interrupted twice by umount/mount, the
    deletion will not be continued and the space permanently lost, though it
    would be possible to write a tool to recover those lost subvol deletions.
    This patch checks if the orphan belongs to a subvol (dead root) and skips
    the deletion.
    Signed-off-by: NArne Jansen <sensille@gmx.net>
    Signed-off-by: NChris Mason <chris.mason@oracle.com>
    f8e9e0b0
inode.c 195.5 KB