函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:废除目录项

函数原型:void d_invalidate(struct dentry *dentry)

返回类型:void

参数:

类型参数名称
struct dentry *dentry
1645  bool had_submounts = false
1646  加自旋锁
1647  如果目录项存在于哈希中
1648  自旋锁解锁
1649  返回
1651  删除目录项
1652  自旋锁解锁
1655  如果非 Where the name belongs to - NULL is * negative 则返回
1658  收缩高速缓存区
1659  循环
1660  struct dentry * victim = NULL
1661  d_walk - walk the dentry tree*@parent: start of walk*@data: data passed to @enter() and @finish()*@enter: callback when first entering the dentry* The @enter() callbacks are called with d_lock held.
1662  如果非victim
1665  返回
1667  had_submounts = true
1668  detach_mounts(victim)
1669  dput - 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
调用者
名称描述
lookup_fast
__lookup_slowFast lookup failed, do it the slow way
lookup_openLook up and maybe create and open the last component
lookup_dcacheThis looks up the name in dcache and possibly revalidates the found dentry.* NULL is returned if the dentry does not exist in the cache.