]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee962c337d5e344169a7f63dec54a02e2ab70964
tree1dbe1dcb6d6c72ffd7fe1a587720b41e7ae0bf5e
parentceccba5f99329a8983cc6eccb6dbb8c280088d5c
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