From 09644f614ae51e6fa5e2d28c87724867eec07daa Mon Sep 17 00:00:00 2001 From: Anton Altaparmakov Date: Wed, 18 Sep 2002 19:32:42 +0100 Subject: Add functions for searching for an inode in icache and getting a reference to it if present - fs/inode.c::ilookup() and ilookup5(), mirroring the iget_locked() and iget5_locked() function pair. Also add two internal helpers ifind_fast() and ifind() respectively which will later be used by iget_locked() and iget5_locked() to do the search, too. --- include/linux/fs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/linux/fs.h b/include/linux/fs.h index 804ea47301f5..0bb08a818502 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1202,6 +1202,10 @@ extern ino_t iunique(struct super_block *, ino_t); extern int inode_needs_sync(struct inode *inode); extern void generic_delete_inode(struct inode *inode); +extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval, + int (*test)(struct inode *, void *), void *data); +extern struct inode *ilookup(struct super_block *sb, unsigned long ino); + extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *); extern struct inode * iget_locked(struct super_block *, unsigned long); extern void unlock_new_inode(struct inode *); -- cgit v1.2.3