We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 765927b commit 11e62a8Copy full SHA for 11e62a8
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)
3269
return -EROFS;
3270
3271
- ret = mnt_want_write(file->f_path.mnt);
+ ret = mnt_want_write_file(file);
3272
if (ret)
3273
return ret;
3274
@@ -3338,7 +3338,7 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg)
3338
out:
3339
mutex_unlock(&fs_info->balance_mutex);
3340
mutex_unlock(&fs_info->volume_mutex);
3341
- mnt_drop_write(file->f_path.mnt);
+ mnt_drop_write_file(file);
3342
3343
}
3344
0 commit comments