new helper: inode_fake_hash()

open-coded in a quite a few places...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2018-06-29 19:36:57 -04:00
parent e950564b97
commit 5bef915104
5 changed files with 15 additions and 10 deletions

View File

@@ -541,7 +541,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_fake(&inode->i_hash);
inode_fake_hash(inode);
mark_inode_dirty(inode);
dont_mount(dentry);
out: