Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Try to kill dentries associated with this inode.* WARNING: you must own a reference to inode.

Proto:void d_prune_aliases(struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct inode *inode
1026  restart :
1027  spin_lock( & _blocks, i_bytes, maybe i_size )
1029  spin_lock( & d_lock)
1030  If Not count Then
1031  parent = lock_parent(dentry)
1035  Go to restart
1037  If parent Then spin_unlock( & d_lock)
1040  spin_unlock( & d_lock)
1042  spin_unlock( & _blocks, i_bytes, maybe i_size )
Caller
NameDescribe
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.