函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\z3fold.c Create Date:2022-07-27 18:05:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:z3fold_zpool_shrink

函数原型:static int z3fold_zpool_shrink(void *pool, unsigned int pages, unsigned int *reclaimed)

返回类型:int

参数:

类型参数名称
void *pool
unsigned intpages
unsigned int *reclaimed
1745  total等于0
1746  ret等于负EINVAL
1748 total小于pages循环
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  如果ret小于0则退出
1752  total自加
1755  如果reclaimedreclaimed等于total
1758  返回:ret