Arne Jansen f8e9e0b07b btrfs: keep orphans for subvolume deletion
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: Arne Jansen <sensille@gmx.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2011-12-15 10:50:37 -05:00
..
2011-07-26 16:49:47 -07:00
2008-09-25 11:04:06 -04:00
2010-12-22 23:15:47 +08:00
2011-10-20 18:10:50 +02:00
2011-11-10 20:45:05 -05:00
2011-06-17 14:54:18 -04:00
2011-05-28 07:00:39 -04:00
2011-11-20 07:21:14 -05:00