diff options
author | Chris Mason <clm@fb.com> | 2014-04-07 10:10:40 -0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-04-07 12:08:50 -0400 |
commit | 3a29bc0928003674f45b4fe625b4d0738a22c60d (patch) | |
tree | 9be59ad2a1bf07c20e4ebaeea90e43ce455a039f /fs | |
parent | a1ecaabbf90cf4e93eb2b50aef3d07ab630c6fb1 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ioctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 05f8df866e4c..89d5db7eb452 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -3163,8 +3163,9 @@ process_slot: | |||
3163 | new_key.offset + datal, | 3163 | new_key.offset + datal, |
3164 | 1); | 3164 | 1); |
3165 | if (ret) { | 3165 | if (ret) { |
3166 | btrfs_abort_transaction(trans, root, | 3166 | if (ret != -EINVAL) |
3167 | ret); | 3167 | btrfs_abort_transaction(trans, |
3168 | root, ret); | ||
3168 | btrfs_end_transaction(trans, root); | 3169 | btrfs_end_transaction(trans, root); |
3169 | goto out; | 3170 | goto out; |
3170 | } | 3171 | } |