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/tree-log.c | |
parent | 1e7e1f9e3aba00c9b9c323bfeeddafe69ff21ff6 (diff) | |
download | talos-obmc-linux-2e19f1f9d31b3515356710b8bdfb655f47a98448.tar.gz talos-obmc-linux-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/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 033aeebbe9de..730b97dee955 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -545,12 +545,8 @@ static noinline struct inode *read_one_inode(struct btrfs_root *root, key.type = BTRFS_INODE_ITEM_KEY; key.offset = 0; inode = btrfs_iget(root->fs_info->sb, &key, root, NULL); - if (IS_ERR(inode)) { + if (IS_ERR(inode)) inode = NULL; - } else if (is_bad_inode(inode)) { - iput(inode); - inode = NULL; - } return inode; } |