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:select_collect2

Proto:static enum d_walk_ret select_collect2(void *_data, struct dentry *dentry)

Type:enum d_walk_ret

Parameter:

TypeParameterName
void *_data
struct dentry *dentry
1505  data = _data
1506  ret = D_WALK_CONTINUE
1508  If start == dentry Then Go to out
1511  If protected by d_lock & DCACHE_SHRINK_LIST Then
1512  If Not count Then
1514  victim = dentry
1515  Return D_WALK_QUIT
1517  Else
1518  If protected by d_lock & DCACHE_LRU_LIST Then d_lru_del(dentry)
1520  If Not count Then d_shrink_add(dentry, & dispose)
1528  If Not list_empty - tests whether a list is empty*@head: the list to test. Then ret = If need_resched() Then D_WALK_QUIT Else D_WALK_NORETRY
1530  out :
1531  Return ret