diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 4c6e0c15754d..04de767a8db2 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -444,12 +444,10 @@ static noinline int btrfs_ioctl_snap_create(struct btrfs_root *root, | |||
444 | goto out; | 444 | goto out; |
445 | } | 445 | } |
446 | 446 | ||
447 | mutex_lock(&root->fs_info->drop_mutex); | ||
448 | if (root == root->fs_info->tree_root) | 447 | if (root == root->fs_info->tree_root) |
449 | ret = create_subvol(root, vol_args->name, namelen); | 448 | ret = create_subvol(root, vol_args->name, namelen); |
450 | else | 449 | else |
451 | ret = create_snapshot(root, vol_args->name, namelen); | 450 | ret = create_snapshot(root, vol_args->name, namelen); |
452 | mutex_unlock(&root->fs_info->drop_mutex); | ||
453 | out: | 451 | out: |
454 | kfree(vol_args); | 452 | kfree(vol_args); |
455 | return ret; | 453 | return ret; |