]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit43ec727615f5c52b02303b82aeb84a1e18f3d8bc
treeee3cb422fb05012b7c5ff52be720a6d68f97de03
parentc146c06e7e7ff8f0e6d20f9c1977cd141a810e48
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