mirror of https://gitee.com/openkylin/linux.git
jfs: don't hash direct inode
hlist_add_fake(inode->i_hash), same as for the rest of special ones... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6b933de642
commit
9bb8730ed3
|
@ -550,7 +550,7 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
|
||||||
inode->i_ino = 0;
|
inode->i_ino = 0;
|
||||||
inode->i_size = sb->s_bdev->bd_inode->i_size;
|
inode->i_size = sb->s_bdev->bd_inode->i_size;
|
||||||
inode->i_mapping->a_ops = &jfs_metapage_aops;
|
inode->i_mapping->a_ops = &jfs_metapage_aops;
|
||||||
insert_inode_hash(inode);
|
hlist_add_fake(&inode->i_hash);
|
||||||
mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS);
|
mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS);
|
||||||
|
|
||||||
sbi->direct_inode = inode;
|
sbi->direct_inode = inode;
|
||||||
|
|
Loading…
Reference in New Issue