Btrfs: fix missing write access release in btrfs_ioctl_resize()
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 21 Dec 2012 10:38:50 +0000 (10:38 +0000)
committerJosef Bacik <josef@toxicpanda.com>
Mon, 14 Jan 2013 18:52:51 +0000 (13:52 -0500)
commit97547676570b3bd908560741315bf4b7d635bcf5
tree61fd3a2841cd9267e137da250dbf5bca5bda5a20
parentdba60f3f5d564167118cad151a7d41dfe8d2a5f7
Btrfs: fix missing write access release in btrfs_ioctl_resize()

We forget to give up the write access after we find some device operation
is going on. Fix it.

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