Function report |
Source Code:mm\swap.c |
Create Date:2022-07-28 14:13:22 |
| Last Modify:2022-05-23 13:40:24 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:If the page can not be invalidated, it is moved to the* inactive list to speed up its reclaim. It is moved to the* head of the list, rather than the tail, to give the flusher* threads some time to write it out, as this is much more
Proto:static void lru_deactivate_file_fn(struct page *page, struct lruvec *lruvec, void *arg)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct page * | page | |
| struct lruvec * | lruvec | |
| void * | arg |
| 510 | If PageUnevictable(page) Then Return |
| 514 | If page_mapped(page) Then Return |
| 517 | active = PageActive(page) |
| 519 | 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. |
| 521 | del_page_from_lru_list(page, lruvec, lru + active) |
| 522 | ClearPageActive(page) |
| 523 | ClearPageReferenced(page) |
| 531 | add_page_to_lru_list(page, lruvec, lru) |
| 533 | Else |
| 538 | add_page_to_lru_list_tail(page, lruvec, lru) |
| 542 | If active Then __count_vm_event(PGDEACTIVATE) |
| 544 | update_page_reclaim_stat(lruvec, file, 0) |
| 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 |