btrfs: simplify btrfs_iget
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jul 2018 22:04:51 +0000 (23:04 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:13:02 +0000 (13:13 +0200)
commitf5b3a4173ff624b766c56936bb315e1517603891
treef4bc7f312cc523b9a362c8384e00e31807c2f2e8
parent9bc2ceff660580454f971ed3f891a2c82085433a
btrfs: simplify btrfs_iget

Don't open-code iget_failed(), don't bother with btrfs_free_path(NULL),
move handling of positive return values of btrfs_lookup_inode() from
btrfs_read_locked_inode() to btrfs_iget() and kill now obviously
pointless ASSERT() in there.

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>
fs/btrfs/inode.c