函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_page_lruvec - return lruvec for isolating/putting an LRU page*@page: the page*@pgdat: pgdat of the page* This function is only safe when following the LRU page isolation* and putback protocol: the LRU lock must be held, and the page must

函数原型:struct lruvec *mem_cgroup_page_lruvec(struct page *page, struct pglist_data *pgdat)

返回类型:struct lruvec

参数:

类型参数名称
struct page *page
struct pglist_data *pgdat
1217  如果mem_cgroup_disabled()则
1218  lruvec等于* NOTE: THIS IS UNUSED IF MEMCG IS ENABLED. * Use mem_cgroup_lruvec() to look up lruvecs.
1219  转到:out
1222  memcg等于mem_cgroup
1227  如果非memcgmemcg等于root_mem_cgroup
1230  mz等于mem_cgroup_page_nodeinfo(memcg, page)
1231  lruvec等于lruvec
1232  out :
1238  如果此条件成立可能性小(为编译器优化)(pgdat != pgdat)则pgdat等于pgdat
1240  返回:lruvec
调用者
名称描述
__page_cache_releaseThis path almost never happens for VM activity - pages are normally* freed via pagevecs. But it gets used by networking.
pagevec_lru_move_fn
activate_page
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.
isolate_lru_pagesolate_lru_page - tries to isolate a page from its LRU list*@page: page to isolate from its LRU list* Isolates a @page from an LRU list, clears PageLRU and adjusts the* vmstat statistic corresponding to whatever LRU list the page was on.
move_pages_to_lruThis moves pages from @list to corresponding LRU list.* We move them the other way if the page is referenced by one or more* processes, from rmap.* If the pages are mostly unmapped, the processing is fast and it is
check_move_unevictable_pagesheck_move_unevictable_pages - check pages for evictability and move to* appropriate zone lru list*@pvec: pagevec with lru pages to check* Checks pages for evictability, if an evictable page is in the unevictable
isolate_migratepages_blocksolate_migratepages_block() - isolate all migrate-able pages within* a single pageblock*@cc: Compaction control structure.*@low_pfn: The first PFN to isolate*@end_pfn: The one-past-the-last PFN to isolate, within same pageblock
__munlock_isolate_lru_pageIsolate a page from LRU with optional get_page() pin.* Assumes lru_lock already held and page already pinned.
__split_huge_page
lock_page_lru
unlock_page_lru
test_clear_page_writeback