]> git.baikalelectronics.ru Git - kernel.git/commit
Btrf: cleanup: don't check for root_refs == 0 twice
authorStefan Behrens <sbehrens@giantdisaster.de>
Fri, 23 Aug 2013 08:34:43 +0000 (10:34 +0200)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:16:29 +0000 (08:16 -0400)
commit3ad93c590d53f3380438e08cf2c7ed4d33288dd6
tree10f09a05563e978d57228943f83fd1cf1c21d388
parentab8a25ba27840341f580a4824b42aeae4cc3f509
Btrf: cleanup: don't check for root_refs == 0 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 three more places.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/file.c
fs/btrfs/relocation.c
fs/btrfs/scrub.c