Commit 531cb13f authored by Sage Weil's avatar Sage Weil Committed by Chris Mason
Browse files

Btrfs: make SNAP_DESTROY async

There is no reason to force an immediate commit when deleting a snapshot.
Users have some expectation that space from a deleted snapshot be freed
immediately, but even if we do commit the reclaim is a background process.

If users _do_ want the deletion to be durable, they can call 'sync'.

Signed-off-by: default avatarSage Weil <>
Signed-off-by: default avatarChris Mason <>
parent 72fd032e
......@@ -1351,7 +1351,7 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file,
ret = btrfs_commit_transaction(trans, root);
ret = btrfs_end_transaction(trans, root);
inode->i_flags |= S_DEAD;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment