Btrfs: fix sync subvol/snapshot creation
authorSage Weil <sage@newdream.net>
Fri, 10 Dec 2010 00:36:28 +0000 (00:36 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 10 Dec 2010 21:29:10 +0000 (16:29 -0500)
commit75eaa0e22c055e38982df267d0f84cc510ba38bf
tree073828ec809c95dbae9368b7f83a3734dad82b45
parent24ae63656a165c870c0d69fcc8aac1dc35e25e34
Btrfs: fix sync subvol/snapshot creation

We were incorrectly taking the async path even for the sync ioctls by
passing in &transid unconditionally.

There's ample room for further cleanup here, but this keeps the fix simple.

Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c