Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318847
b: refs/heads/master
c: e54bfa3
h: refs/heads/master
i:
  318845: d2399d7
  318843: bc97c74
  318839: 7467d00
  318831: 1e8ba6f
  318815: d353d74
  318783: 62fc4b9
  318719: e36cabd
v: v3
  • Loading branch information
Liu Bo authored and Chris Mason committed Jul 23, 2012
1 parent 889675c commit 3f1e945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 768e9dfe820abdcfb6683e05c60b8634f1a4ffce
refs/heads/master: e54bfa31044d602a57d4e190f6d1c3763ea76bfe
4 changes: 2 additions & 2 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3265,7 +3265,7 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg)
if (!capable(CAP_SYS_ADMIN))
return -EPERM;

ret = mnt_want_write(file->f_path.mnt);
ret = mnt_want_write_file(file);
if (ret)
return ret;

Expand Down Expand Up @@ -3335,7 +3335,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 3f1e945

Please sign in to comment.