Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zswap_get_swap_cache_page* This is an adaption of read_swap_cache_async()* This function tries to find a page with the given swap entry* in the swapper_space address space (the swap cache). If the page* is found, it is returned in retpage

Proto:static int zswap_get_swap_cache_page(swp_entry_t entry, struct page **retpage)

Type:int

Parameter:

TypeParameterName
swp_entry_tentry
struct page **retpage
819  retpage = __read_swap_cache_async(entry, GFP_KERNEL, NULL, 0, & page_was_allocated)
821  If page_was_allocated Then Return ZSWAP_SWAPCACHE_NEW
823  If Not retpage Then Return ZSWAP_SWAPCACHE_FAIL
825  Return ZSWAP_SWAPCACHE_EXIST
Caller
NameDescribe
zswap_writeback_entry