函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory-failure.c Create Date:2022-07-27 17:53:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Clean (or cleaned) page cache page.

函数原型:static int me_pagecache_clean(struct page *p, unsigned long pfn)

返回类型:int

参数:

类型参数名称
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  如果PageAnon(p)则返回:MF_RECOVERED
654  mapping等于page_mapping(p)
655  如果非mapping
659  返回:MF_FAILED
667  返回:truncate_error_page(p, pfn, mapping)
调用者
名称描述
me_pagecache_dirtyDirty pagecache page* Issues: when the error hit a hole page the error is not properly* propagated.