Skip to content

Commit 11e62a8

Browse files
author
Al Viro
committed
btrfs: switch btrfs_ioctl_balance() to mnt_want_write_file()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 765927b commit 11e62a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/btrfs/ioctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3268,7 +3268,7 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg)
32683268
if (fs_info->sb->s_flags & MS_RDONLY)
32693269
return -EROFS;
32703270

3271-
ret = mnt_want_write(file->f_path.mnt);
3271+
ret = mnt_want_write_file(file);
32723272
if (ret)
32733273
return ret;
32743274

@@ -3338,7 +3338,7 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg)
33383338
out:
33393339
mutex_unlock(&fs_info->balance_mutex);
33403340
mutex_unlock(&fs_info->volume_mutex);
3341-
mnt_drop_write(file->f_path.mnt);
3341+
mnt_drop_write_file(file);
33423342
return ret;
33433343
}
33443344

0 commit comments

Comments
 (0)