Commit bdaec334 authored by Al Viro's avatar Al Viro

f2fs: use mnt_want_write_file() in ioctl

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 8d71db4f
...@@ -590,7 +590,7 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -590,7 +590,7 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{ {
unsigned int oldflags; unsigned int oldflags;
ret = mnt_want_write(filp->f_path.mnt); ret = mnt_want_write_file(filp);
if (ret) if (ret)
return ret; return ret;
...@@ -627,7 +627,7 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -627,7 +627,7 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
inode->i_ctime = CURRENT_TIME; inode->i_ctime = CURRENT_TIME;
mark_inode_dirty(inode); mark_inode_dirty(inode);
out: out:
mnt_drop_write(filp->f_path.mnt); mnt_drop_write_file(filp);
return ret; return ret;
} }
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment