Btrfs: clean up error handling in mount_subvol()
authorOmar Sandoval <osandov@osandov.com>
Mon, 18 May 2015 09:16:28 +0000 (02:16 -0700)
committerChris Mason <clm@fb.com>
Wed, 3 Jun 2015 11:02:59 +0000 (04:02 -0700)
commitfa3306595071ae03e181c2336d0dcd8f5e3cf9b0
treeaf48f275b97a747a9fc7b270c80bf0c257cf1e5b
parente6e4dbe894ef29bd4aa05a7702e0cded1943dd10
Btrfs: clean up error handling in mount_subvol()

In preparation for new functionality in mount_subvol(), give it
ownership of subvol_name and tidy up the error paths.

Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/super.c