aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2013-01-20 08:57:57 -0500
committerIlya Dryomov <idryomov@gmail.com>2013-01-20 09:21:21 -0500
commit4ac20c70b0734b65662ded735e5f6ba0415bdb71 (patch)
tree678b77e66230670e0461bb35d0bc00574b8865aa /fs/btrfs/ioctl.c
parent18f39c416d18d74ac11d157e44247253d3fa30ae (diff)
Btrfs: fix unlock order in btrfs_ioctl_rm_dev
Fix unlock order in btrfs_ioctl_rm_dev(). Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index fcf1b1b40082..f5c1c150d9f3 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2319,8 +2319,8 @@ static long btrfs_ioctl_rm_dev(struct file *file, void __user *arg)
2319 kfree(vol_args); 2319 kfree(vol_args);
2320out: 2320out:
2321 mutex_unlock(&root->fs_info->volume_mutex); 2321 mutex_unlock(&root->fs_info->volume_mutex);
2322 mnt_drop_write_file(file);
2323 atomic_set(&root->fs_info->mutually_exclusive_operation_running, 0); 2322 atomic_set(&root->fs_info->mutually_exclusive_operation_running, 0);
2323 mnt_drop_write_file(file);
2324 return ret; 2324 return ret;
2325} 2325}
2326 2326