diff options
author | Su Yue <suy.fnst@cn.fujitsu.com> | 2018-03-05 17:13:37 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 15:09:43 +0200 |
commit | 005d67127fa9dfb3382f2c9e918feed7a243a7fe (patch) | |
tree | 8189d9865dc9d25b6a0de86f2ee7bf778126c39b /fs/btrfs/raid56.c | |
parent | 9b99b11564446600f3a3ce394a841d525b7993e7 (diff) |
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: Su Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ drop unlikely ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/raid56.c')
0 files changed, 0 insertions, 0 deletions