Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Clean (or cleaned) page cache page.

Proto:static int me_pagecache_clean(struct page *p, unsigned long pfn)

Type:int

Parameter:

TypeParameterName
struct page *p
unsigned longpfn
638  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.
644  If PageAnon(p) Then Return MF_RECOVERED
654  mapping = page_mapping(p)
655  If Not mapping Then
659  Return MF_FAILED
667  Return truncate_error_page(p, pfn, mapping)
Caller
NameDescribe
me_pagecache_dirtyDirty pagecache page* Issues: when the error hit a hole page the error is not properly* propagated.