]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: cleanup: don't check the same thing twice
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 13 May 2013 13:53:35 +0000 (13:53 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:30 +0000 (11:29 -0400)
commitd3e05aa9db47d8dacf57919a3fb15e72395dc34b
treeb84ec1bcce88d60d5c3fd7a68d4dbcbdf985a6cb
parent27866b8721bde5822452cb75321cec8e55583edc
Btrfs: cleanup: don't check the same thing twice

btrfs_read_fs_root_no_name() already checks if btrfs_root_refs()
is zero and returns ENOENT in this case. There is no need to do
it again in six places.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/export.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/super.c