函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:has_bh_in_lru

函数原型:static bool has_bh_in_lru(int cpu, void *dummy)

返回类型:bool

参数:

类型参数名称
intcpu
void *dummy
1423  b等于per_cpu_ptr( & bh_lrus, cpu)
1426 i小于Per-cpu buffer LRU implementation. To reduce the cost of __find_get_block().* The bhs[] array is sorted - newest buffer is at bhs[0]. Buffers have their* refcount elevated by one when they're in an LRU. A buffer can only appear循环
1427  如果bhs[i]则返回:true
1431  返回:false