Skip to content
Commit 005d6712 authored by Su Yue's avatar Su Yue Committed by David Sterba
Browse files

btrfs: adjust return values of btrfs_inode_by_name



Previously, btrfs_inode_by_name() returned 0 which left caller to check
objectid of location even location if the type was invalid.

Let btrfs_inode_by_name() return -EUCLEAN if a corrupted location of a
dir entry is found.  Removal of label out_err also simplifies the
function.

Signed-off-by: default avatarSu Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ drop unlikely ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 9b99b115
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment