Skip to content

Commit 8dd0e68

Browse files
fdmananakdave
authored andcommitted
btrfs: remove unnecessary transaction abort in the received subvol ioctl
If we fail to remove an item from the uuid tree, we don't need to abort the transaction since we have not done any change before. So remove that transaction abort. Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 0f475ee commit 8dd0e68

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/btrfs/ioctl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3969,7 +3969,6 @@ static long _btrfs_ioctl_set_received_subvol(struct file *file,
39693969
BTRFS_UUID_KEY_RECEIVED_SUBVOL,
39703970
btrfs_root_id(root));
39713971
if (unlikely(ret && ret != -ENOENT)) {
3972-
btrfs_abort_transaction(trans, ret);
39733972
btrfs_end_transaction(trans);
39743973
goto out;
39753974
}

0 commit comments

Comments
 (0)