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:Lock a dentry from shrink list

Proto:static bool shrink_lock_dentry(struct dentry *dentry)

Type:bool

Parameter:

TypeParameterName
struct dentry *dentry
1062  If count Then Return false
1065  inode = Where the name belongs to - NULL is * negative
1066  If inode && Value for the false possibility is greater at compile time(!spin_trylock( & _blocks, i_bytes, maybe i_size )) Then
1067  spin_unlock( & d_lock)
1068  spin_lock( & _blocks, i_bytes, maybe i_size )
1069  spin_lock( & d_lock)
1070  If Value for the false possibility is greater at compile time(count) Then Go to out
1073  If Value for the false possibility is greater at compile time(inode != Where the name belongs to - NULL is * negative ) Then Go to out
1077  parent = parent directory
1078  If linux/include/linux/dcache.h* Dirent cache data structures* (C) Copyright 1997 Thomas Schoebel-Theuer,* with heavy changes by Linus Torvalds(dentry) || Value is more likely to compile time(spin_trylock( & d_lock)) Then Return true
1081  spin_unlock( & d_lock)
1082  spin_lock( & d_lock)
1083  If Value for the false possibility is greater at compile time(parent != parent directory ) Then
1084  spin_unlock( & d_lock)
1085  spin_lock( & d_lock)
1086  Go to out
1088  spin_lock_nested( & d_lock, DENTRY_D_LOCK_NESTED)
1089  If Value is more likely to compile time(!count) Then Return true
1091  spin_unlock( & d_lock)
1092  out :
1093  If inode Then spin_unlock( & _blocks, i_bytes, maybe i_size )
1095  Return false
Caller
NameDescribe
shrink_dentry_list
shrink_dcache_parentprune dcache