]> git.hungrycats.org Git - linux/commit
btrfs: cleanup orphans while looking up default subvolume
authorJeff Mahoney <jeffm@suse.com>
Fri, 20 Mar 2015 18:02:09 +0000 (14:02 -0400)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 17 Apr 2015 15:58:19 +0000 (11:58 -0400)
commit2877d4a8be98d8934639a1c34efe376f1f231934
treeba893654184ffcbd1cef9f2846d76b377a9c4f72
parentca1757d2e707fd6d2ee237121e5804a308d7070f
btrfs: cleanup orphans while looking up default subvolume

Orphans in the fs tree are cleaned up via open_ctree and subvolume
orphans are cleaned via btrfs_lookup_dentry -- except when a default
subvolume is in use.  The name for the default subvolume uses a manual
lookup that doesn't trigger orphan cleanup and needs to trigger it
manually as well. This doesn't apply to the remount case since the
subvolumes are cleaned up by walking the root radix tree.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit 727b9784b6085c99c2f836bf4fcc2848dc9cf904)
fs/btrfs/super.c