Function report |
Source Code:mm\vmscan.c |
Create Date:2022-07-28 14:20:25 |
| Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:heck_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
Proto:void check_move_unevictable_pages(struct pagevec *pvec)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct pagevec * | pvec |
| 4333 | struct pglist_data * pgdat = NULL |
| 4334 | pgscanned = 0 |
| 4335 | pgrescued = 0 |
| 4340 | pagepgdat = page_pgdat(page) |
| 4342 | pgscanned++ |
| 4344 | If pgdat Then spin_unlock_irq( & Write-intensive fields used by page reclaim ) |
| 4349 | lruvec = mem_cgroup_page_lruvec(page, pgdat) |
| 4351 | If Not PageLRU(page) || Not PageUnevictable(page) Then Continue |
| 4355 | 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. |
| 4357 | VM_BUG_ON_PAGE(PageActive(page), page) |
| 4358 | ClearPageUnevictable(page) |
| 4360 | add_page_to_lru_list(page, lruvec, lru) |
| 4361 | pgrescued++ |
| 4365 | If pgdat Then |
| 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 |