Skip to content

Commit

Permalink
switch hfs to hlist_add_fake()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Oct 26, 2010
1 parent 756acc2 commit 89b0fc3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions fs/hfs/hfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ struct hfs_sb_info {
u16 blockoffset;

int fs_div;

struct hlist_head rsrc_inodes;
};

#define HFS_FLG_BITMAP_DIRTY 0
Expand Down
2 changes: 1 addition & 1 deletion fs/hfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ static struct dentry *hfs_file_lookup(struct inode *dir, struct dentry *dentry,
HFS_I(inode)->rsrc_inode = dir;
HFS_I(dir)->rsrc_inode = inode;
igrab(dir);
hlist_add_head(&inode->i_hash, &HFS_SB(dir->i_sb)->rsrc_inodes);
hlist_add_fake(&inode->i_hash);
mark_inode_dirty(inode);
out:
d_add(dentry, inode);
Expand Down
1 change: 0 additions & 1 deletion fs/hfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ static int hfs_fill_super(struct super_block *sb, void *data, int silent)
return -ENOMEM;

sb->s_fs_info = sbi;
INIT_HLIST_HEAD(&sbi->rsrc_inodes);

res = -EINVAL;
if (!parse_options((char *)data, sbi)) {
Expand Down

0 comments on commit 89b0fc3

Please sign in to comment.