diff options
Diffstat (limited to 'fs/reiserfs/ioctl.c')
-rw-r--r-- | fs/reiserfs/ioctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/reiserfs/ioctl.c b/fs/reiserfs/ioctl.c index 4e153051bc75..950e3d1b5c9e 100644 --- a/fs/reiserfs/ioctl.c +++ b/fs/reiserfs/ioctl.c | |||
@@ -55,7 +55,7 @@ long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | |||
55 | break; | 55 | break; |
56 | } | 56 | } |
57 | 57 | ||
58 | err = mnt_want_write(filp->f_path.mnt); | 58 | err = mnt_want_write_file(filp); |
59 | if (err) | 59 | if (err) |
60 | break; | 60 | break; |
61 | 61 | ||
@@ -96,7 +96,7 @@ long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | |||
96 | inode->i_ctime = CURRENT_TIME_SEC; | 96 | inode->i_ctime = CURRENT_TIME_SEC; |
97 | mark_inode_dirty(inode); | 97 | mark_inode_dirty(inode); |
98 | setflags_out: | 98 | setflags_out: |
99 | mnt_drop_write(filp->f_path.mnt); | 99 | mnt_drop_write_file(filp); |
100 | break; | 100 | break; |
101 | } | 101 | } |
102 | case REISERFS_IOC_GETVERSION: | 102 | case REISERFS_IOC_GETVERSION: |
@@ -107,7 +107,7 @@ setflags_out: | |||
107 | err = -EPERM; | 107 | err = -EPERM; |
108 | break; | 108 | break; |
109 | } | 109 | } |
110 | err = mnt_want_write(filp->f_path.mnt); | 110 | err = mnt_want_write_file(filp); |
111 | if (err) | 111 | if (err) |
112 | break; | 112 | break; |
113 | if (get_user(inode->i_generation, (int __user *)arg)) { | 113 | if (get_user(inode->i_generation, (int __user *)arg)) { |
@@ -117,7 +117,7 @@ setflags_out: | |||
117 | inode->i_ctime = CURRENT_TIME_SEC; | 117 | inode->i_ctime = CURRENT_TIME_SEC; |
118 | mark_inode_dirty(inode); | 118 | mark_inode_dirty(inode); |
119 | setversion_out: | 119 | setversion_out: |
120 | mnt_drop_write(filp->f_path.mnt); | 120 | mnt_drop_write_file(filp); |
121 | break; | 121 | break; |
122 | default: | 122 | default: |
123 | err = -ENOTTY; | 123 | err = -ENOTTY; |