aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 0e92e5763005..1e9f6c019ad0 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -3268,7 +3268,7 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg)
3268 if (fs_info->sb->s_flags & MS_RDONLY) 3268 if (fs_info->sb->s_flags & MS_RDONLY)
3269 return -EROFS; 3269 return -EROFS;
3270 3270
3271 ret = mnt_want_write(file->f_path.mnt); 3271 ret = mnt_want_write_file(file);
3272 if (ret) 3272 if (ret)
3273 return ret; 3273 return ret;
3274 3274
@@ -3338,7 +3338,7 @@ out_bargs:
3338out: 3338out:
3339 mutex_unlock(&fs_info->balance_mutex); 3339 mutex_unlock(&fs_info->balance_mutex);
3340 mutex_unlock(&fs_info->volume_mutex); 3340 mutex_unlock(&fs_info->volume_mutex);
3341 mnt_drop_write(file->f_path.mnt); 3341 mnt_drop_write_file(file);
3342 return ret; 3342 return ret;
3343} 3343}
3344 3344