Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-28 20:07:57
Last Modify:2020-03-18 19:19:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:d_inode_fast is the fast path version of find_inode, see the comment at* iget_locked for details.

Proto:static struct inode *find_inode_fast(struct super_block *sb, struct hlist_head *head, unsigned long ino)

Type:struct inode

Parameter:

TypeParameterName
struct super_block *sb
struct hlist_head *head
unsigned longino
848  struct inode * inode = NULL
850  repeat :
852  If Stat data, not accessed from path walking != ino Then Continue
854  If i_sb != sb Then Continue
856  spin_lock( & _blocks, i_bytes, maybe i_size )
857  If Misc & (Set when inode is about to be freed but still has dirty pages or buffers attached or the inode itself is still dirty | Must be set when calling write_inode_now() if i_count is zero) Then
858  __wait_on_freeing_inode(inode)
859  Go to repeat
861  If Value for the false possibility is greater at compile time(Misc & I_CREATING) Then
862  spin_unlock( & _blocks, i_bytes, maybe i_size )
863  Return ERR_PTR( - ESTALE)
865  __iget(inode)
866  spin_unlock( & _blocks, i_bytes, maybe i_size )
867  Return inode
869  Return NULL
Caller
NameDescribe
iget_lockedobtain an inode from a mounted file system
ilookupsearch for an inode in the inode cache