diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-07-29 23:04:45 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 13:13:02 +0200 |
commit | 2e19f1f9d31b3515356710b8bdfb655f47a98448 (patch) | |
tree | 41d6d39adc85c8d15a21974f995565cce1391b31 /fs/btrfs/free-space-cache.c | |
parent | 1e7e1f9e3aba00c9b9c323bfeeddafe69ff21ff6 (diff) | |
download | linux-stable-2e19f1f9d31b3515356710b8bdfb655f47a98448.tar.gz linux-stable-2e19f1f9d31b3515356710b8bdfb655f47a98448.tar.bz2 linux-stable-2e19f1f9d31b3515356710b8bdfb655f47a98448.zip |
btrfs: btrfs_iget never returns an is_bad_inode inode
Just get rid of pointless checks.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
-rw-r--r-- | fs/btrfs/free-space-cache.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 57e7ab7f5e03..0adf38b00fa0 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -71,10 +71,6 @@ static struct inode *__lookup_free_space_inode(struct btrfs_root *root, inode = btrfs_iget(fs_info->sb, &location, root, NULL); if (IS_ERR(inode)) return inode; - if (is_bad_inode(inode)) { - iput(inode); - return ERR_PTR(-ENOENT); - } mapping_set_gfp_mask(inode->i_mapping, mapping_gfp_constraint(inode->i_mapping, |