From: Arne Jansen Date: Thu, 15 Dec 2011 01:12:02 +0000 (-0500) Subject: btrfs: keep orphans for subvolume deletion X-Git-Tag: v3.2-rc6~4^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8e9e0b07be0464e12366631da3da73a1a62449c;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed