]> 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)
commit365e9a0e38a194f53dc1082db710b3e5f0563b67
tree1dbe1dcb6d6c72ffd7fe1a587720b41e7ae0bf5e
parentb2d78fdc4bdb5559b96ebfc9c66012f106e4b58a
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