Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm_inline.h Create Date:2022-07-28 14:08:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:page_off_lru - which LRU list was page on? clearing its lru flags.*@page: the page to test* Returns the LRU list a page was on, as an index into the array of LRU* lists; and clears its Unevictable or Active flags, ready for freeing.

Proto:static __always_inline enum lru_list page_off_lru(struct page *page)

Type:enum lru_list

Parameter:

TypeParameterName
struct page *page
94  If PageUnevictable(page) Then
95  __ClearPageUnevictable(page)
96  lru = LRU_UNEVICTABLE
97  Else
98  lru = page_lru_base_type - which LRU list type should a page be on?*@page: the page to test* Used for LRU list index arithmetic.* Returns the base LRU type - file or anon - @page should be on.
99  If PageActive(page) Then
101  lru += LRU_ACTIVE
104  Return lru
Caller
NameDescribe
__page_cache_releaseThis path almost never happens for VM activity - pages are normally* freed via pagevecs. But it gets used by networking.
release_pageslease_pages - batched put_page()*@pages: array of pages to release*@nr: number of pages* Decrement the reference count on all the pages in @pages. If it* fell to zero, remove the page from the LRU and free it.