Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\z3fold.c Create Date:2022-07-28 16:30:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:z3fold_zpool_shrink

Proto:static int z3fold_zpool_shrink(void *pool, unsigned int pages, unsigned int *reclaimed)

Type:int

Parameter:

TypeParameterName
void *pool
unsigned intpages
unsigned int *reclaimed
1745  total = 0
1746  ret = -EINVAL
1748  When total < pages cycle
1749  ret = z3fold_reclaim_page() - evicts allocations from a pool page and frees it*@pool: pool from which a page will attempt to be evicted*@retries: number of pages on the LRU list for which eviction will* be attempted before failing* z3fold reclaim is different
1750  If ret < 0 Then Break
1752  total++
1755  If reclaimed Then reclaimed = total
1758  Return ret