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

Proto:static enum lru_status dentry_lru_isolate(struct list_head *item, struct list_lru_one *lru, spinlock_t *lru_lock, void *arg)

Type:enum lru_status

Parameter:

TypeParameterName
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  If Not spin_trylock( & d_lock) Then Return m cannot be locked, skip
1146  If count Then
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  spin_unlock( & d_lock)
1149  Return m removed from list
1152  If protected by d_lock & Recently used, don't discard. Then
1153  protected by d_lock &= ~Recently used, don't discard.
1154  spin_unlock( & d_lock)
1175  Return m referenced, give another pass
1178  d_lru_shrink_move(lru, dentry, freeable)
1179  spin_unlock( & d_lock)
1181  Return m removed from list