Skip to content

Commit bdaec33

Browse files
author
Al Viro
committed
f2fs: use mnt_want_write_file() in ioctl
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 8d71db4 commit bdaec33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/f2fs/file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
590590
{
591591
unsigned int oldflags;
592592

593-
ret = mnt_want_write(filp->f_path.mnt);
593+
ret = mnt_want_write_file(filp);
594594
if (ret)
595595
return ret;
596596

@@ -627,7 +627,7 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
627627
inode->i_ctime = CURRENT_TIME;
628628
mark_inode_dirty(inode);
629629
out:
630-
mnt_drop_write(filp->f_path.mnt);
630+
mnt_drop_write_file(filp);
631631
return ret;
632632
}
633633
default:

0 commit comments

Comments
 (0)