Skip to content

Commit

Permalink
btrfs: switch btrfs_ioctl_balance() to mnt_want_write_file()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jul 22, 2012
1 parent 765927b commit 11e62a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -3338,7 +3338,7 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg)
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;
}

Expand Down

0 comments on commit 11e62a8

Please sign in to comment.