函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dentry_lru_isolate

函数原型:static enum lru_status dentry_lru_isolate(struct list_head *item, struct list_lru_one *lru, spinlock_t *lru_lock, void *arg)

返回类型:enum lru_status

参数:

类型参数名称
struct list_head *item
struct list_lru_one *lru
spinlock_t *lru_lock
void *arg
1129  freeable等于arg
1130  dentry等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(item, structdentry, d_lru)
1138  如果非spin_trylock( & d_lock)则返回:m cannot be locked, skip
1146  如果count
1147  These can only be called under the global LRU lock, ie during the* callback for freeing the LRU list. "isolate" removes it from the* LRU lists entirely, while shrink_move moves it to the indicated* private list.
1148  自旋锁解锁
1149  返回:m removed from list
1152  如果 protected by d_lock 按位与Recently used, don't discard.
1153  protected by d_lock 与等于Recently used, don't discard. 的反
1154  自旋锁解锁
1175  返回:m referenced, give another pass
1178  d_lru_shrink_move(lru, dentry, freeable)
1179  自旋锁解锁
1181  返回:m removed from list