projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
765927b
)
btrfs: switch btrfs_ioctl_balance() to mnt_want_write_file()
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 19 Jul 2012 07:17:49 +0000
(11:17 +0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 22 Jul 2012 20:01:43 +0000
(
00:01
+0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/btrfs/ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/ioctl.c
b/fs/btrfs/ioctl.c
index 0e92e5763005214b5d55d091d6fcfb94d73f4875..1e9f6c019ad069ea51a5bc7ea475fd0d804dc1ae 100644
(file)
--- 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;
}