libbtrfsutil: don't return free space cache inodes from deleted_subvolumes()
authorOmar Sandoval <osandov@fb.com>
Thu, 29 Mar 2018 07:53:53 +0000 (00:53 -0700)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 20:52:29 +0000 (22:52 +0200)
commitc41c5b1562c5a628f164a1d3d3d19a9c1f728bdf
treea46005b2a5e9b70308ea056ee792a3886d24adb1
parent2a496a5b8b74752cf3823652ccbb529f160e9878
libbtrfsutil: don't return free space cache inodes from deleted_subvolumes()

Deleted free space cache inodes also get an orphan item in the root
tree, but we shouldn't report those as deleted subvolumes. Deleted
subvolumes will still have the root item, so we can just do an extra
tree search.

Reported-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
libbtrfsutil/subvolume.c