Function report |
Source Code:mm\vmscan.c |
Create Date:2022-07-28 14:18:04 |
Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Attempt to remove the specified page from its LRU. Only take this page* if it is of the appropriate PageActive status. Pages which are being* freed elsewhere are also ignored.* returns 0 on success, -ve errno on failure.
Proto:int __isolate_lru_page(struct page *page, isolate_mode_t mode)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | page to consider |
isolate_mode_t | mode | one of the LRU isolation modes defined above |
1544 | If Not PageLRU( page to consider) Then Return ret |
1548 | If PageUnevictable( page to consider) && Not ( one of the LRU isolation modes defined above & Isolate unevictable pages ) Then Return ret |
1563 | If Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting. Then Return ret |
1566 | If PageDirty( page to consider) Then |
1579 | If Not Return true if the page was successfully locked Then Return ret |
1582 | mapping = page_mapping( page to consider) |
1583 | migrate_dirty = Not mapping || migratepage |
1585 | If Not migrate_dirty Then Return ret |
1590 | If one of the LRU isolation modes defined above & Isolate unmapped pages && page_mapped( page to consider) Then Return ret |
1599 | ClearPageLRU( page to consider) |
1600 | ret = 0 |
1603 | Return ret |
Name | Describe |
---|---|
isolate_lru_pages | pgdat->lru_lock is heavily contended. Some of the functions that* shrink the lists perform better by taking out a batch of pages* and working on them outside the LRU lock.* For pagecache intensive workloads, this function is the hottest |
isolate_migratepages_block | solate_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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |