函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mlock.c Create Date:2022-07-27 16:13:02
Last Modify:2022-05-23 14:12:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Prepare page for fast batched LRU putback via putback_lru_evictable_pagevec()* The fast path is available only for evictable pages with single mapping.* Then we can bypass the per-cpu pvec and get better performance.

函数原型:static bool __putback_lru_fast_prepare(struct page *page, struct pagevec *pvec, int *pgrescued)

返回类型:bool

参数:

类型参数名称
struct page *page
struct pagevec *pvec
int *pgrescued
249  VM_BUG_ON_PAGE(PageLRU(page), page)
250  VM_BUG_ON_PAGE(!PageLocked(page), page)
252  如果page_mapcount(page)小于等于1且page_evictable - test whether a page is evictable*@page: the page to test* Test whether page is evictable--i
253  Add a page to a pagevec. Returns the number of slots still available.
254  如果TestClearPageUnevictable(page)则pgrescued自加
256  lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
257  返回:true
260  返回:false
调用者
名称描述
__munlock_pagevecMunlock a batch of pages from the same zone* The work is split to two main phases