Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Free the swap entry like above, but also try to* free the page cache entry if it is the last user.

Proto:int free_swap_and_cache(swp_entry_t entry)

Type:int

Parameter:

TypeParameterName
swp_entry_tentry
1737  If non_swap_entry(entry) Then Return 1
1740  p = _swap_info_get(entry)
1741  If p Then
1742  count = __swap_entry_free(p, entry, 1)
1743  If count == Flag page is cached, in first swap_map && Not swap_page_trans_huge_swapped(p, entry) Then rns 1 if swap entry is freed
1748  Return p != NULL
Caller
NameDescribe
zap_pte_range
madvise_free_pte_range