Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swap_state.c Create Date:2022-07-28 15:14:36
Last Modify:2020-03-17 22:02:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void free_pages_and_swap_cache(struct page **pages, int nr)

Type:void

Parameter:

TypeParameterName
struct page **pages
intnr
290  pagep = pages
293  lru_add_drain()
294  When i < nr cycle 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.
Caller
NameDescribe
tlb_batch_pages_flush