Btrfs: unify error handling of btrfs_lookup_dir_item
authorLiu Bo <bo.liu@linux.alibaba.com>
Tue, 11 Sep 2018 22:06:26 +0000 (06:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:30 +0000 (17:23 +0200)
commit3cf5068f3d068d788871b0da1a0348048e68b9d6
tree1ffbf067fbf99d96f4c9f86268bdef79ce41d8c8
parent3b2fd8016069de59f73caca06f7ad60c25f3eb92
Btrfs: unify error handling of btrfs_lookup_dir_item

Unify the error handling of directory item lookups using IS_ERR_OR_NULL.
No functional changes.

Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
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
fs/btrfs/send.c