函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-29 10:37:27
Last Modify:2020-03-18 10:27:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:retain_dentry

函数原型:static inline bool retain_dentry(struct dentry *dentry)

返回类型:bool

参数:

类型参数名称
struct dentry *dentry
637  WARN_ON(d_in_lookup(dentry))
640  如果此条件成立可能性小(为编译器优化)(目录项存在于哈希中)则返回:false
643  如果此条件成立可能性小(为编译器优化)( protected by d_lock & DCACHE_DISCONNECTED)则返回:false
646  如果此条件成立可能性小(为编译器优化)( protected by d_lock & DCACHE_OP_DELETE)则
647  如果d_delete(dentry)则返回:false
651  count自减
652  如果此条件成立可能性小(为编译器优化)(!( protected by d_lock & DCACHE_LRU_LIST))则d_lru_add(dentry)
654  否则如果此条件成立可能性小(为编译器优化)(!( protected by d_lock & Recently used, don't discard. ))则 protected by d_lock 或等于Recently used, don't discard.
656  返回:true
调用者
名称描述
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