btrfs: return EUCLEAN if extent_inline_ref type is invalid
authorSu Yue <suy.fnst@cn.fujitsu.com>
Fri, 22 Jun 2018 08:18:01 +0000 (16:18 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:40 +0000 (13:12 +0200)
commitaf431dcb249ffff20b16e08adaa4b624405a046b
tree1dbe1dcb6d6c72ffd7fe1a587720b41e7ae0bf5e
parente4af400a9c5081e7d2b703e4c479cb9831cc1117
btrfs: return EUCLEAN if extent_inline_ref type is invalid

If type of extent_inline_ref found is not expected, filesystem may have
been corrupted, should return EUCLEAN instead of EINVAL.

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c
fs/btrfs/extent-tree.c
fs/btrfs/relocation.c