btrfs: Don't BUG_ON errors from btrfs_create_subvol_root()
authorMark Fasheh <mfasheh@suse.com>
Tue, 26 Jul 2011 18:32:23 +0000 (11:32 -0700)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:36 +0000 (01:45 +0100)
commitce598979be6f83549c90f42ba522a19a33727611
treeee3cb422fb05012b7c5ff52be720a6d68f97de03
parent2c536799f1bde905bbacf7af3aa6be3f4de66005
btrfs: Don't BUG_ON errors from btrfs_create_subvol_root()

This is called from only one place - create_subvol() which passes errors
safely back out to it's caller, btrfs_mksubvol where they are handled.

Additionally, btrfs_create_subvol_root() itself bug's needlessly from error
return of btrfs_update_inode(). Since create_subvol() was fixed to catch
errors we can bubble this one up too.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/btrfs/inode.c
fs/btrfs/ioctl.c