函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-29 10:37:30
Last Modify:2020-03-18 10:27:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:select_collect2

函数原型:static enum d_walk_ret select_collect2(void *_data, struct dentry *dentry)

返回类型:enum d_walk_ret

参数:

类型参数名称
void *_data
struct dentry *dentry
1505  data等于_data
1506  ret等于D_WALK_CONTINUE
1508  如果start恒等于dentry则转到:out
1511  如果 protected by d_lock 按位与DCACHE_SHRINK_LIST
1512  如果非count
1514  victim等于dentry
1515  返回:D_WALK_QUIT
1517  否则
1518  如果 protected by d_lock 按位与DCACHE_LRU_LISTd_lru_del(dentry)
1520  如果非countd_shrink_add(dentry, & dispose)
1528  如果非链表为空ret等于如果need_resched()则D_WALK_QUIT否则D_WALK_NORETRY
1530  out :
1531  返回:ret