diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-19 09:17:49 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-22 22:01:43 +0200 |
commit | 11e62a8fabd003352e852e74e1b64a437fd908c6 (patch) | |
tree | 53f744b0a61f3a14f5ca3091d491a4a154e038ef /fs/btrfs | |
parent | switch dentry_open() to struct path, make it grab references itself (diff) | |
download | linux-11e62a8fabd003352e852e74e1b64a437fd908c6.tar.xz linux-11e62a8fabd003352e852e74e1b64a437fd908c6.zip |
btrfs: switch btrfs_ioctl_balance() to mnt_want_write_file()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/btrfs')
-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 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) if (fs_info->sb->s_flags & MS_RDONLY) return -EROFS; - ret = mnt_want_write(file->f_path.mnt); + ret = mnt_want_write_file(file); if (ret) return ret; @@ -3338,7 +3338,7 @@ out_bargs: out: mutex_unlock(&fs_info->balance_mutex); mutex_unlock(&fs_info->volume_mutex); - mnt_drop_write(file->f_path.mnt); + mnt_drop_write_file(file); return ret; } |