Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:d_exact_alias - find and hash an exact unhashed alias*@entry: dentry to add*@inode: The inode to go with this dentry* If an unhashed dentry with the same name/parent and desired* inode already exists, hash and return it. Otherwise, return* NULL.

Proto:struct dentry *d_exact_alias(struct dentry *entry, struct inode *inode)

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *entry
struct inode *inode
2700  hash = hash
2702  spin_lock( & _blocks, i_bytes, maybe i_size )
2709  If hash != hash Then Continue
2711  If parent directory != parent directory Then Continue
2713  If Not d_same_name(alias, parent directory , & d_name) Then Continue
2715  spin_lock( & d_lock)
2716  If Not d_unhashed - is dentry hashed*@dentry: entry to check* Returns true if the dentry passed is not currently hashed. Then
2717  spin_unlock( & d_lock)
2718  alias = NULL
2719  Else
2720  This must be called with d_lock held
2721  __d_rehash(alias)
2722  spin_unlock( & d_lock)
2724  spin_unlock( & _blocks, i_bytes, maybe i_size )
2725  Return alias
2727  spin_unlock( & _blocks, i_bytes, maybe i_size )
2728  Return NULL