summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-20 14:33:23 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 20:12:56 +0200
commitbdaec334bbe7d234ca6ddd81aa74b2938d40e6b4 (patch)
treeec4be847cce90d58df7afa7853d25e4560b1cd29 /fs/f2fs/file.c
parentlift sb_start_write/sb_end_write out of ->aio_write() (diff)
downloadlinux-bdaec334bbe7d234ca6ddd81aa74b2938d40e6b4.tar.xz
linux-bdaec334bbe7d234ca6ddd81aa74b2938d40e6b4.zip
f2fs: use mnt_want_write_file() in ioctl
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 958a46da19ae..db626282d424 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -590,7 +590,7 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
unsigned int oldflags;
- ret = mnt_want_write(filp->f_path.mnt);
+ ret = mnt_want_write_file(filp);
if (ret)
return ret;
@@ -627,7 +627,7 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
inode->i_ctime = CURRENT_TIME;
mark_inode_dirty(inode);
out:
- mnt_drop_write(filp->f_path.mnt);
+ mnt_drop_write_file(filp);
return ret;
}
default: