projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
768e9df
)
Btrfs: use mnt_want_write_file instead of mnt_want_write
author
Liu Bo
<liubo2009@cn.fujitsu.com>
Fri, 29 Jun 2012 09:58:48 +0000
(
03:58
-0600)
committer
Chris Mason
<chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:27:57 +0000
(16:27 -0400)
mnt_want_write_file is faster when file has been opened for write.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
fs/btrfs/ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/ioctl.c
b/fs/btrfs/ioctl.c
index b8034dc62e38fcced8bedaccb8b8a6bd7157c921..13ed1c9534cc672a9682a776c0a161bace2aa5e3 100644
(file)
--- a/
fs/btrfs/ioctl.c
+++ b/
fs/btrfs/ioctl.c
@@
-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;
@@
-3335,7
+3335,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;
}