|
@@ -792,7 +792,7 @@ again:
|
|
|
type = btrfs_get_extent_inline_ref_type(eb, iref,
|
|
type = btrfs_get_extent_inline_ref_type(eb, iref,
|
|
|
BTRFS_REF_TYPE_BLOCK);
|
|
BTRFS_REF_TYPE_BLOCK);
|
|
|
if (type == BTRFS_REF_TYPE_INVALID) {
|
|
if (type == BTRFS_REF_TYPE_INVALID) {
|
|
|
- err = -EINVAL;
|
|
|
|
|
|
|
+ err = -EUCLEAN;
|
|
|
goto out;
|
|
goto out;
|
|
|
}
|
|
}
|
|
|
key.type = type;
|
|
key.type = type;
|
|
@@ -3801,7 +3801,7 @@ int add_data_references(struct reloc_control *rc,
|
|
|
ret = find_data_references(rc, extent_key,
|
|
ret = find_data_references(rc, extent_key,
|
|
|
eb, dref, blocks);
|
|
eb, dref, blocks);
|
|
|
} else {
|
|
} else {
|
|
|
- ret = -EINVAL;
|
|
|
|
|
|
|
+ ret = -EUCLEAN;
|
|
|
btrfs_err(rc->extent_root->fs_info,
|
|
btrfs_err(rc->extent_root->fs_info,
|
|
|
"extent %llu slot %d has an invalid inline ref type",
|
|
"extent %llu slot %d has an invalid inline ref type",
|
|
|
eb->start, path->slots[0]);
|
|
eb->start, path->slots[0]);
|