diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2013-05-13 15:53:35 +0200 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-06-14 17:29:30 +0200 |
commit | 3c64a1aba7cfcb04f79e76f859b3d66660275d59 (patch) | |
tree | b84ec1bcce88d60d5c3fd7a68d4dbcbdf985a6cb /fs/btrfs/export.c | |
parent | Btrfs: cleanup, btrfs_read_fs_root_no_name() doesn't return NULL (diff) | |
download | linux-3c64a1aba7cfcb04f79e76f859b3d66660275d59.tar.xz linux-3c64a1aba7cfcb04f79e76f859b3d66660275d59.zip |
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>
Diffstat (limited to 'fs/btrfs/export.c')
-rw-r--r-- | fs/btrfs/export.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/export.c b/fs/btrfs/export.c index 81ee29eeb7ca..4b8691607373 100644 --- a/fs/btrfs/export.c +++ b/fs/btrfs/export.c @@ -82,11 +82,6 @@ static struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, goto fail; } - if (btrfs_root_refs(&root->root_item) == 0) { - err = -ENOENT; - goto fail; - } - key.objectid = objectid; btrfs_set_key_type(&key, BTRFS_INODE_ITEM_KEY); key.offset = 0; |