aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
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/ocfs2
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/ocfs2')
-rw-r--r--fs/ocfs2/ioctl.c2
-rw-r--r--fs/ocfs2/move_extents.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/ioctl.c b/fs/ocfs2/ioctl.c
index bc91072..d15042e 100644
--- a/fs/ocfs2/ioctl.c
+++ b/fs/ocfs2/ioctl.c
@@ -905,7 +905,7 @@ long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
if (get_user(flags, (int __user *) arg))
return -EFAULT;
- status = mnt_want_write(filp->f_path.mnt);
+ status = mnt_want_write_file(filp);
if (status)
return status;
status = ocfs2_set_inode_attr(inode, flags,
diff --git a/fs/ocfs2/move_extents.c b/fs/ocfs2/move_extents.c
index cd94270..037085f 100644
--- a/fs/ocfs2/move_extents.c
+++ b/fs/ocfs2/move_extents.c
@@ -1060,7 +1060,7 @@ int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp)
struct ocfs2_move_extents range;
struct ocfs2_move_extents_context *context = NULL;
- status = mnt_want_write(filp->f_path.mnt);
+ status = mnt_want_write_file(filp);
if (status)
return status;