diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2013-08-23 08:34:43 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-01 12:16:29 (GMT) |
commit | 23fa76b0ba78b7d84708d9ee683587d8a5bbceef (patch) | |
tree | 10f09a05563e978d57228943f83fd1cf1c21d388 /fs/btrfs/relocation.c | |
parent | 48475471728f060bfd2e686f592ef208d3ba8b7d (diff) | |
download | linux-fsl-qoriq-23fa76b0ba78b7d84708d9ee683587d8a5bbceef.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r-- | fs/btrfs/relocation.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index cf5e30f..aacc212 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -2354,9 +2354,6 @@ again: if (IS_ERR(root)) continue; - if (btrfs_root_refs(&root->root_item) == 0) - continue; - trans = btrfs_join_transaction(root); BUG_ON(IS_ERR(trans)); |