ilookup5_nowait - search for an inode in the inode cache
2. SYNOPSIS ▲
struct inode * ilookup5_nowait(struct super_block * sb , unsigned long hashval , int (* test ) (struct inode *, void *), void * data );
3. ARGUMENTS ▲
super block of file system to search
hash value (usually inode number) to search for
callback used for comparisons between inodes
opaque data pointer to pass to test
4. DESCRIPTION ▲
Search for the inode specified by hashval and data in the inode cache. If the inode is in the cache, the inode is returned with an incremented reference count.
5. NOTE ▲
I_NEW is not waited upon so you have to be very careful what you do with the returned inode. You probably should be using ilookup5 instead.
6. NOTE2 ▲
test is called with the inode_hash_lock held, so canAqt sleep.
7. COPYRIGHT ▲