Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-28 20:07:26
Last Modify:2020-03-18 10:27:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:d_find_any_alias - find any alias for a given inode*@inode: inode to find an alias for* If any aliases exist for the given inode, take and return a* reference for one of them. If no aliases exist, return %NULL.

Proto:struct dentry *d_find_any_alias(struct inode *inode)

Type:struct dentry

Parameter:

TypeParameterName
struct inode *inode
966  spin_lock( & _blocks, i_bytes, maybe i_size )
967  de = __d_find_any_alias(inode)
968  spin_unlock( & _blocks, i_bytes, maybe i_size )
969  Return de
Caller
NameDescribe
inode_doinit_with_dentry
__d_obtain_alias
shrink_dcache_inodeTry to evict the inode's dentries from the dentry cache. If the inode is a* directory, then it can have at most one dentry; however, that dentry may be* pinned by child dentries, so first try to evict the children too.