mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-08-15 02:08:01 +00:00
Btrfs: fix EINVAL checks in btrfs_clone
btrfs_drop_extents can now return -EINVAL, but only one caller in btrfs_clone was checking for it. This adds it to the caller for inline extents, which is where we really need it. Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
parent
a1ecaabbf9
commit
3a29bc0928
1 changed files with 3 additions and 2 deletions
|
@ -3163,8 +3163,9 @@ process_slot:
|
||||||
new_key.offset + datal,
|
new_key.offset + datal,
|
||||||
1);
|
1);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
btrfs_abort_transaction(trans, root,
|
if (ret != -EINVAL)
|
||||||
ret);
|
btrfs_abort_transaction(trans,
|
||||||
|
root, ret);
|
||||||
btrfs_end_transaction(trans, root);
|
btrfs_end_transaction(trans, root);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue