函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swap_state.c Create Date:2022-07-27 16:44:56
Last Modify:2020-03-17 22:02:06 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Passed an array of pages, drop them all from swapcache and then release* them. They are removed from the LRU and freed if this is their last use.

函数原型:void free_pages_and_swap_cache(struct page **pages, int nr)

返回类型:void

参数:

类型参数名称
struct page **pages
intnr
290  pagep等于pages
293  lru_add_drain()
294 i小于nr循环If we are the only user, then try to free up the swap cache. * Its ok to check for PageSwapCache without the page lock* here because we are going to recheck again inside* try_to_free_swap() _with_ the lock.* - Marcelo
296  lease_pages - batched put_page()*@pages: array of pages to release*@nr: number of pages* Decrement the reference count on all the pages in @pages. If it* fell to zero, remove the page from the LRU and free it.
调用者
名称描述
tlb_batch_pages_flush