Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:XXX: It is possible that a page is isolated from LRU cache,* and then kept in swap cache or failed to remove from page cache.* The page count will stop it from being freed by unpoison.* Stress tests should be aware of this memory leak problem.

Proto:static int delete_from_lru_cache(struct page *p)

Type:int

Parameter:

TypeParameterName
struct page *p
556  If Not solate_lru_page - tries to isolate a page from its LRU list*@page: page to isolate from its LRU list* Isolates a @page from an LRU list, clears PageLRU and adjusts the* vmstat statistic corresponding to whatever LRU list the page was on. Then
561  ClearPageActive(p)
562  ClearPageUnevictable(p)
568  mem_cgroup_uncharge - uncharge a page*@page: page to uncharge* Uncharge a page previously charged with mem_cgroup_try_charge() and* mem_cgroup_commit_charge().
573  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
574  Return 0
576  Return -EIO
Caller
NameDescribe
me_pagecache_cleanClean (or cleaned) page cache page.
me_swapcache_dirtyClean and dirty swap cache.* Dirty swap cache page is tricky to handle. The page could live both in page* cache and swap cache(ie. page is freshly swapped in). So it could be* referenced concurrently by 2 types of PTEs:* normal PTEs and swap PTEs
me_swapcache_clean