Btrfs: Make async snapshot ioctl more generic
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 10 Dec 2010 06:41:56 +0000 (06:41 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 10 Dec 2010 21:29:11 +0000 (16:29 -0500)
commitfdfb1e4f6c61477a61890b64974d65cdc3a98702
tree2bb65569dfbcfe12e4d54449d018abeebf88e89d
parent914ee295af418e936ec20a08c1663eaabe4cd07a
Btrfs: Make async snapshot ioctl more generic

If we had reserved some bytes in struct btrfs_ioctl_vol_args, we
wouldn't have to create a new structure for async snapshot creation.

Here we convert async snapshot ioctl to use a more generic ABI, as
we'll add more ioctls for snapshots/subvolumes in the future, readonly
snapshots for example.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c
fs/btrfs/ioctl.h