|
@@ -925,7 +925,7 @@ static int add_inline_refs(const struct btrfs_fs_info *fs_info,
|
|
|
type = btrfs_get_extent_inline_ref_type(leaf, iref,
|
|
|
BTRFS_REF_TYPE_ANY);
|
|
|
if (type == BTRFS_REF_TYPE_INVALID)
|
|
|
- return -EINVAL;
|
|
|
+ return -EUCLEAN;
|
|
|
|
|
|
offset = btrfs_extent_inline_ref_offset(leaf, iref);
|
|
|
|
|
@@ -1793,7 +1793,7 @@ static int get_extent_inline_ref(unsigned long *ptr,
|
|
|
*out_type = btrfs_get_extent_inline_ref_type(eb, *out_eiref,
|
|
|
BTRFS_REF_TYPE_ANY);
|
|
|
if (*out_type == BTRFS_REF_TYPE_INVALID)
|
|
|
- return -EINVAL;
|
|
|
+ return -EUCLEAN;
|
|
|
|
|
|
*ptr += btrfs_extent_inline_ref_size(*out_type);
|
|
|
WARN_ON(*ptr > end);
|