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:prune dcache

Proto:void shrink_dcache_parent(struct dentry *parent)

Type:void

Parameter:

TypeParameterName
struct dentry *parent
1542  cycle
1543  struct select_data data = {start = parent}
1545  Initialization list head
1546  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.
1550  Continue
1553  cond_resched()
1554  If Not found Then Break
1556  victim = NULL
1557  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.
1558  If victim Then
1560  spin_lock( & d_lock)
1561  If Not Lock a dentry from shrink list Then
1564  Else
1572  If Not list_empty - tests whether a list is empty*@head: the list to test. Then shrink_dentry_list( & dispose)
Caller
NameDescribe
vfs_renamevfs_rename - rename a filesystem object*@old_dir: parent of source*@old_dentry: source*@new_dir: parent of destination*@new_dentry: destination*@delegated_inode: returns an inode needing a delegation break*@flags: rename flags
do_one_tree
d_invalidateinvalidate a dentry
simple_fill_superhe inodes created here are not hashed. If you use iunique to generate* unique inode values later for this filesystem, then you must take care* to pass it an appropriate max_reserved value to avoid collisions.
shrink_dcache_inodeTry to evict the inode's dentries from the dentry cache. If the inode is a* directory, then it can have at most one dentry; however, that dentry may be* pinned by child dentries, so first try to evict the children too.