diff options
| author | Jan Harkes <jaharkes@cs.cmu.edu> | 2002-05-19 19:25:21 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-05-19 19:25:21 -0700 |
| commit | 9b406173ebec1ced8c3071d6df1f025aa9a1d488 (patch) | |
| tree | 7b6fadad564683701dc022ecd8e939655ee34057 /include | |
| parent | aa624c8d24de1cee65483886b3f4ffc2fbc72980 (diff) | |
[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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fs.h | 7 |
1 files changed, 6 insertions, 1 deletions
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[]); |
