diff options
Diffstat (limited to 'fs/hpfs/inode.c')
-rw-r--r-- | fs/hpfs/inode.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/hpfs/inode.c b/fs/hpfs/inode.c index 87f1f787e767..29cf0508d271 100644 --- a/fs/hpfs/inode.c +++ b/fs/hpfs/inode.c | |||
@@ -187,9 +187,7 @@ void hpfs_write_inode(struct inode *i) | |||
187 | kfree(hpfs_inode->i_rddir_off); | 187 | kfree(hpfs_inode->i_rddir_off); |
188 | hpfs_inode->i_rddir_off = NULL; | 188 | hpfs_inode->i_rddir_off = NULL; |
189 | } | 189 | } |
190 | mutex_lock(&hpfs_inode->i_parent_mutex); | ||
191 | if (!i->i_nlink) { | 190 | if (!i->i_nlink) { |
192 | mutex_unlock(&hpfs_inode->i_parent_mutex); | ||
193 | return; | 191 | return; |
194 | } | 192 | } |
195 | parent = iget_locked(i->i_sb, hpfs_inode->i_parent_dir); | 193 | parent = iget_locked(i->i_sb, hpfs_inode->i_parent_dir); |
@@ -200,14 +198,11 @@ void hpfs_write_inode(struct inode *i) | |||
200 | hpfs_read_inode(parent); | 198 | hpfs_read_inode(parent); |
201 | unlock_new_inode(parent); | 199 | unlock_new_inode(parent); |
202 | } | 200 | } |
203 | mutex_lock(&hpfs_inode->i_mutex); | ||
204 | hpfs_write_inode_nolock(i); | 201 | hpfs_write_inode_nolock(i); |
205 | mutex_unlock(&hpfs_inode->i_mutex); | ||
206 | iput(parent); | 202 | iput(parent); |
207 | } else { | 203 | } else { |
208 | mark_inode_dirty(i); | 204 | mark_inode_dirty(i); |
209 | } | 205 | } |
210 | mutex_unlock(&hpfs_inode->i_parent_mutex); | ||
211 | } | 206 | } |
212 | 207 | ||
213 | void hpfs_write_inode_nolock(struct inode *i) | 208 | void hpfs_write_inode_nolock(struct inode *i) |