From: Al Viro Date: Thu, 19 Jul 2012 07:17:49 +0000 (+0400) Subject: btrfs: switch btrfs_ioctl_balance() to mnt_want_write_file() X-Git-Tag: v3.6~263^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11e62a8fabd003352e852e74e1b64a437fd908c6;p=platform%2Fkernel%2Flinux-amlogic.git btrfs: switch btrfs_ioctl_balance() to mnt_want_write_file() Signed-off-by: Al Viro --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 0e92e57..1e9f6c0 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; }