Skip to content

Commit

Permalink
f2fs: use mnt_want_write_file() in ioctl
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Apr 9, 2013
1 parent 8d71db4 commit bdaec33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/f2fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit bdaec33

Please sign in to comment.