函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-27 15:42:10
Last Modify:2022-05-23 13:41:30 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:A direct reclaimer may isolate SWAP_CLUSTER_MAX pages from the LRU list and* then get rescheduled

函数原型:static int too_many_isolated(struct pglist_data *pgdat, int file, struct scan_control *sc)

返回类型:int

参数:

类型参数名称
struct pglist_data *pgdat
intfile
struct scan_control *sc
1798  如果current_is_kswapd()则返回:0
1801  如果非writeback_throttling_sane - is the usual dirty throttling mechanism available?*@sc: scan_control in question* The normal page dirty throttling mechanism in balance_dirty_pages() is* completely broken with the legacy memcg and direct stalling in* 则返回:0
1804  如果file
1805  inactive等于node_page_state(pgdat, NR_INACTIVE_FILE)
1806  isolated等于node_page_state(pgdat, NR_ISOLATED_FILE)
1807  否则
1808  inactive等于node_page_state(pgdat, NR_INACTIVE_ANON)
1809  isolated等于node_page_state(pgdat, NR_ISOLATED_ANON)
1817  如果 This context's GFP mask 按位与DOC: Reclaim modifiers* Reclaim modifiers* ~~~~~~~~~~~~~~~~~* %__GFP_IO can start physical IO.* %__GFP_FS can call down to the low-level FS. Clearing the flag avoids the* allocator recursing into the filesystem which might already be holding* locks.按位或__GFP_FS的值的值恒等于DOC: Reclaim modifiers* Reclaim modifiers* ~~~~~~~~~~~~~~~~~* %__GFP_IO can start physical IO.* %__GFP_FS can call down to the low-level FS. Clearing the flag avoids the* allocator recursing into the filesystem which might already be holding* locks.按位或__GFP_FS的值则inactive右移等于3位
1820  返回:isolated大于inactive
调用者
名称描述
shrink_inactive_listshrink_inactive_list() is a helper for shrink_node(). It returns the number* of reclaimed pages