Btrfs: make SNAP_DESTROY async
authorSage Weil <sage@newdream.net>
Fri, 29 Oct 2010 19:41:32 +0000 (15:41 -0400)
committerChris Mason <chris.mason@oracle.com>
Sat, 30 Oct 2010 01:42:10 +0000 (21:42 -0400)
commit531cb13f1e417c060b54f979e1659ecd69bea650
tree6b421ac1ddf7cad271cd0c767f0c19e6c4f826df
parent72fd032e94240d001b1d22f2c1dfd2592b02e44e
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: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c