Btrfs: fix resize a readonly device
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 21 Dec 2012 09:19:51 +0000 (09:19 +0000)
committerJosef Bacik <josef@toxicpanda.com>
Mon, 14 Jan 2013 18:52:49 +0000 (13:52 -0500)
commitdba60f3f5d564167118cad151a7d41dfe8d2a5f7
treeac27d2c6b3797a2f52cc5d34ca1d570684db3be6
parent5c39da5b6ca23e68e7acea7f4c01470383475214
Btrfs: fix resize a readonly device

We should not resize a readonly device, fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ioctl.c