]> 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)
commit551b1ba36cd4e3f7acce7290fe7e31df7799520a
treeee3cb422fb05012b7c5ff52be720a6d68f97de03
parent314378f6e7c6b53d1c697d9ef39f30a59cab22c3
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