diff options
Diffstat (limited to 'fs/hfsplus/inode.c')
-rw-r--r-- | fs/hfsplus/inode.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index 309defb4f41f..a05b3afa7230 100644 --- a/fs/hfsplus/inode.c +++ b/fs/hfsplus/inode.c | |||
@@ -204,7 +204,15 @@ static struct dentry *hfsplus_file_lookup(struct inode *dir, struct dentry *dent | |||
204 | hip->rsrc_inode = dir; | 204 | hip->rsrc_inode = dir; |
205 | HFSPLUS_I(dir)->rsrc_inode = inode; | 205 | HFSPLUS_I(dir)->rsrc_inode = inode; |
206 | igrab(dir); | 206 | igrab(dir); |
207 | hlist_add_head(&inode->i_hash, &HFSPLUS_SB(sb)->rsrc_inodes); | 207 | |
208 | /* | ||
209 | * __mark_inode_dirty expects inodes to be hashed. Since we don't | ||
210 | * want resource fork inodes in the regular inode space, we make them | ||
211 | * appear hashed, but do not put on any lists. hlist_del() | ||
212 | * will work fine and require no locking. | ||
213 | */ | ||
214 | inode->i_hash.pprev = &inode->i_hash.next; | ||
215 | |||
208 | mark_inode_dirty(inode); | 216 | mark_inode_dirty(inode); |
209 | out: | 217 | out: |
210 | d_add(dentry, inode); | 218 | d_add(dentry, inode); |