Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:invalidate a dentry

Proto:void d_invalidate(struct dentry *dentry)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry
1645  bool had_submounts = false
1646  spin_lock( & d_lock)
1647  If d_unhashed - is dentry hashed*@dentry: entry to check* Returns true if the dentry passed is not currently hashed. Then
1648  spin_unlock( & d_lock)
1649  Return
1651  drop a dentry
1652  spin_unlock( & d_lock)
1655  If Not Where the name belongs to - NULL is * negative Then Return
1658  prune dcache
1659  cycle
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  If Not victim Then
1663  If had_submounts Then prune dcache
1665  Return
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
Caller
NameDescribe
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.