Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211579
b: refs/heads/master
c: 58a818f
h: refs/heads/master
i:
  211577: 1088a57
  211575: 41706bd
v: v3
  • Loading branch information
Christoph Hellwig authored and Christoph Hellwig committed Oct 1, 2010
1 parent 1587f6a commit 931bb12
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66e5db05bb6670f314d90aba5998e6a033e4d563
refs/heads/master: 58a818f532e83f337689358c102ba2048d1b37f5
2 changes: 0 additions & 2 deletions trunk/fs/hfsplus/hfsplus_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ struct hfsplus_sb_info {
int part, session;

unsigned long flags;

struct hlist_head rsrc_inodes;
};

#define HFSPLUS_SB_WRITEBACKUP 0x0001
Expand Down
10 changes: 9 additions & 1 deletion trunk/fs/hfsplus/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,15 @@ static struct dentry *hfsplus_file_lookup(struct inode *dir, struct dentry *dent
hip->rsrc_inode = dir;
HFSPLUS_I(dir)->rsrc_inode = inode;
igrab(dir);
hlist_add_head(&inode->i_hash, &HFSPLUS_SB(sb)->rsrc_inodes);

/*
* __mark_inode_dirty expects inodes to be hashed. Since we don't
* want resource fork inodes in the regular inode space, we make them
* appear hashed, but do not put on any lists. hlist_del()
* will work fine and require no locking.
*/
inode->i_hash.pprev = &inode->i_hash.next;

mark_inode_dirty(inode);
out:
d_add(dentry, inode);
Expand Down
1 change: 0 additions & 1 deletion trunk/fs/hfsplus/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
return -ENOMEM;

sb->s_fs_info = sbi;
INIT_HLIST_HEAD(&sbi->rsrc_inodes);
mutex_init(&sbi->alloc_mutex);
hfsplus_fill_defaults(sbi);
if (!hfsplus_parse_options(data, sbi)) {
Expand Down

0 comments on commit 931bb12

Please sign in to comment.