]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: lift make_bad_inode into btrfs_iget
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jul 2018 22:04:50 +0000 (23:04 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:13:02 +0000 (13:13 +0200)
commit00ff8a80a71cd12b5ebe278642acfc0035fce9b5
tree48b6dba9859904edca7a1e856445bc0c2bc29238
parent8733c87f1947afc4c62bd4b8854c980e66d4378a
btrfs: lift make_bad_inode into btrfs_iget

We don't need to check is_bad_inode() after the call of
btrfs_read_locked_inode() - it's exactly the same as checking return
value for being non-zero.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c