diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-12-09 08:06:57 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:52:40 -0500 |
commit | 2a79f17e4a641a2f463cb512cb0ec349844a147b (patch) | |
tree | 8801127310d0a3492941bb284e83393844a19685 /fs/ext2 | |
parent | 8c9379e972e984d11c2b99121847ba9fa7a0c56c (diff) |
vfs: mnt_drop_write_file()
new helper (wrapper around mnt_drop_write()) to be used in pair with
mnt_want_write_file().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext2/ioctl.c b/fs/ext2/ioctl.c index 61a3f966172..1089f760c84 100644 --- a/fs/ext2/ioctl.c +++ b/fs/ext2/ioctl.c | |||
@@ -83,7 +83,7 @@ long ext2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | |||
83 | inode->i_ctime = CURRENT_TIME_SEC; | 83 | inode->i_ctime = CURRENT_TIME_SEC; |
84 | mark_inode_dirty(inode); | 84 | mark_inode_dirty(inode); |
85 | setflags_out: | 85 | setflags_out: |
86 | mnt_drop_write(filp->f_path.mnt); | 86 | mnt_drop_write_file(filp); |
87 | return ret; | 87 | return ret; |
88 | } | 88 | } |
89 | case EXT2_IOC_GETVERSION: | 89 | case EXT2_IOC_GETVERSION: |
@@ -100,7 +100,7 @@ setflags_out: | |||
100 | inode->i_ctime = CURRENT_TIME_SEC; | 100 | inode->i_ctime = CURRENT_TIME_SEC; |
101 | mark_inode_dirty(inode); | 101 | mark_inode_dirty(inode); |
102 | } | 102 | } |
103 | mnt_drop_write(filp->f_path.mnt); | 103 | mnt_drop_write_file(filp); |
104 | return ret; | 104 | return ret; |
105 | case EXT2_IOC_GETRSVSZ: | 105 | case EXT2_IOC_GETRSVSZ: |
106 | if (test_opt(inode->i_sb, RESERVATION) | 106 | if (test_opt(inode->i_sb, RESERVATION) |
@@ -145,7 +145,7 @@ setflags_out: | |||
145 | rsv->rsv_goal_size = rsv_window_size; | 145 | rsv->rsv_goal_size = rsv_window_size; |
146 | } | 146 | } |
147 | mutex_unlock(&ei->truncate_mutex); | 147 | mutex_unlock(&ei->truncate_mutex); |
148 | mnt_drop_write(filp->f_path.mnt); | 148 | mnt_drop_write_file(filp); |
149 | return 0; | 149 | return 0; |
150 | } | 150 | } |
151 | default: | 151 | default: |