diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index b8034dc62e38..13ed1c9534cc 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -3265,7 +3265,7 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg) | |||
3265 | if (!capable(CAP_SYS_ADMIN)) | 3265 | if (!capable(CAP_SYS_ADMIN)) |
3266 | return -EPERM; | 3266 | return -EPERM; |
3267 | 3267 | ||
3268 | ret = mnt_want_write(file->f_path.mnt); | 3268 | ret = mnt_want_write_file(file); |
3269 | if (ret) | 3269 | if (ret) |
3270 | return ret; | 3270 | return ret; |
3271 | 3271 | ||
@@ -3335,7 +3335,7 @@ out_bargs: | |||
3335 | out: | 3335 | out: |
3336 | mutex_unlock(&fs_info->balance_mutex); | 3336 | mutex_unlock(&fs_info->balance_mutex); |
3337 | mutex_unlock(&fs_info->volume_mutex); | 3337 | mutex_unlock(&fs_info->volume_mutex); |
3338 | mnt_drop_write(file->f_path.mnt); | 3338 | mnt_drop_write_file(file); |
3339 | return ret; | 3339 | return ret; |
3340 | } | 3340 | } |
3341 | 3341 | ||