Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_action

Proto:static int page_action(struct page_state *ps, struct page *p, unsigned long pfn)

Type:int

Parameter:

TypeParameterName
struct page_state *ps
struct page *p
unsigned longpfn
889  result = action(p, pfn)
891  count = page_count(p) - 1
892  If action == Clean 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 && result == Will be handled later Then count--
894  If count > 0 Then
895  pr_err("Memory failure: %#lx: %s still referenced by %d users\n", pfn, action_page_types[type], count)
897  result = Error: handling failed
899  "Dirty/Clean" indication is not 100% accurate due to the possibility of* setting PG_dirty outside page lock. See also comment above set_page_dirty().
906  Return If result == Successfully recovered || result == Will be handled later Then 0 Else -EBUSY
Caller
NameDescribe
identify_page_state