Btrfs: get write access when setting the default subvolume
authorMiao Xie <miaox@cn.fujitsu.com>
Mon, 26 Nov 2012 08:43:07 +0000 (08:43 +0000)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:09 +0000 (20:46 -0500)
commit3c04ce01053413007b9df88313b8b8e17272b57b
tree864b9d4285433c812e8d5af10dd453457f51d9f5
parent8cd2807f79b73ef2d8c1cb6b3732dc5758ac7212
Btrfs: get write access when setting the default subvolume

When wen want to set the default subvolume, we must get write access, or
we will change the R/O file system.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ioctl.c