aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/file.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-23 11:57:51 -0500
committerAndreas Blaesius <skate4life@gmx.de>2016-06-05 21:20:22 +0200
commit03a0aea46d3eb01144cf5a55926a7257c1e851be (patch)
treeec28aed0a0b1c140bdf3d3fc88107e2664b8bd24 /fs/gfs2/file.c
parent7578bc67e5d4b4ade68a8ba511a281573b4f203a (diff)
downloadkernel_samsung_espresso10-03a0aea46d3eb01144cf5a55926a7257c1e851be.zip
kernel_samsung_espresso10-03a0aea46d3eb01144cf5a55926a7257c1e851be.tar.gz
kernel_samsung_espresso10-03a0aea46d3eb01144cf5a55926a7257c1e851be.tar.bz2
switch a bunch of places to mnt_want_write_file()
it's both faster (in case when file has been opened for write) and cleaner. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Conflicts: fs/ext4/ioctl.c fs/nfsd/nfs4recover.c fs/xfs/xfs_ioctl.c Change-Id: Ibb2cc434d8d320d7c1790add3108330f6d5b2fc5
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r--fs/gfs2/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index a9f5cbe..8d14f4b 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -212,7 +212,7 @@ static int do_gfs2_set_flags(struct file *filp, u32 reqflags, u32 mask)
int error;
u32 new_flags, flags;
- error = mnt_want_write(filp->f_path.mnt);
+ error = mnt_want_write_file(filp);
if (error)
return error;