From 9b406173ebec1ced8c3071d6df1f025aa9a1d488 Mon Sep 17 00:00:00 2001 From: Jan Harkes Date: Sun, 19 May 2002 19:25:21 -0700 Subject: [PATCH] iget_locked [6/6] As of the last patch the inode_hashtable doesn't really need to be indexed by i_ino anymore, the only reason we still have to keep the hashvalue and i_ino identical is because of insert_inode_hash. If at some point a FS specific getattr method is implemented it will be possible to completely remove any use of i_ino by the VFS. --- include/linux/fs.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/fs.h b/include/linux/fs.h index 4ec6c2fe76c6..f3e56d1f70f2 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1221,8 +1221,13 @@ extern void __iget(struct inode * inode); extern void clear_inode(struct inode *); extern struct inode *new_inode(struct super_block *); extern void remove_suid(struct dentry *); -extern void insert_inode_hash(struct inode *); + +extern void __insert_inode_hash(struct inode *, unsigned long hashval); extern void remove_inode_hash(struct inode *); +static inline void insert_inode_hash(struct inode *inode) { + __insert_inode_hash(inode, inode->i_ino); +} + extern struct file * get_empty_filp(void); extern void file_move(struct file *f, struct list_head *list); extern void ll_rw_block(int, int, struct buffer_head * bh[]); -- cgit v1.2.3