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:retain_dentry

Proto:static inline bool retain_dentry(struct dentry *dentry)

Type:bool

Parameter:

TypeParameterName
struct dentry *dentry
637  WARN_ON(d_in_lookup(dentry))
640  If Value for the false possibility is greater at compile time(d_unhashed - is dentry hashed*@dentry: entry to check* Returns true if the dentry passed is not currently hashed.) Then Return false
643  If Value for the false possibility is greater at compile time( protected by d_lock & DCACHE_DISCONNECTED) Then Return false
646  If Value for the false possibility is greater at compile time( protected by d_lock & DCACHE_OP_DELETE) Then
647  If d_delete(dentry) Then Return false
651  count--
652  If Value for the false possibility is greater at compile time(!( protected by d_lock & DCACHE_LRU_LIST)) Then d_lru_add(dentry)
654  Else if Value for the false possibility is greater at compile time(!( protected by d_lock & Recently used, don't discard. )) Then protected by d_lock |= Recently used, don't discard.
656  Return true
Caller
NameDescribe
dentry_killFinish off a dentry we've decided to kill.* Returns dentry requiring refcount drop, or NULL if we're done.
dputdput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
dput_to_list