diff options
Diffstat (limited to 'fs/ocfs2/ioctl.c')
-rw-r--r-- | fs/ocfs2/ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/ioctl.c b/fs/ocfs2/ioctl.c index 726ff265b296..a6fda3c188aa 100644 --- a/fs/ocfs2/ioctl.c +++ b/fs/ocfs2/ioctl.c | |||
@@ -906,12 +906,12 @@ long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | |||
906 | if (get_user(flags, (int __user *) arg)) | 906 | if (get_user(flags, (int __user *) arg)) |
907 | return -EFAULT; | 907 | return -EFAULT; |
908 | 908 | ||
909 | status = mnt_want_write(filp->f_path.mnt); | 909 | status = mnt_want_write_file(filp); |
910 | if (status) | 910 | if (status) |
911 | return status; | 911 | return status; |
912 | status = ocfs2_set_inode_attr(inode, flags, | 912 | status = ocfs2_set_inode_attr(inode, flags, |
913 | OCFS2_FL_MODIFIABLE); | 913 | OCFS2_FL_MODIFIABLE); |
914 | mnt_drop_write(filp->f_path.mnt); | 914 | mnt_drop_write_file(filp); |
915 | return status; | 915 | return status; |
916 | case OCFS2_IOC_RESVSP: | 916 | case OCFS2_IOC_RESVSP: |
917 | case OCFS2_IOC_RESVSP64: | 917 | case OCFS2_IOC_RESVSP64: |