函数逻辑报告 |
Source Code:mm\swap.c |
Create Date:2022-07-27 15:37:20 |
Last Modify:2022-05-23 13:40:24 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lease_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.
函数原型:void release_pages(struct page **pages, int nr)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page ** | pages | |
int | nr |
782 | LIST_HEAD(pages_to_free) |
783 | struct pglist_data * locked_pgdat = NULL |
786 | lock_batch等于lock_batch |
796 | 如果locked_pgdat且lock_batch先自加恒等于SWAP_CLUSTER_MAX则 |
798 | locked_pgdat = NULL |
801 | 如果is_huge_zero_page(page)则继续下一循环 |
804 | 如果is_zone_device_page(page)则 |
820 | page等于compound_head(page) |
824 | 如果PageCompound(page)则 |
834 | pgdat等于page_pgdat(page) |
836 | 如果pgdat不等于locked_pgdat则 |
840 | lock_batch等于0 |
841 | locked_pgdat等于pgdat |
846 | VM_BUG_ON_PAGE(!PageLRU(page), page) |
847 | __ClearPageLRU(page) |
852 | __ClearPageActive(page) |
853 | __ClearPageWaiters(page) |
855 | 添加链表项 |
861 | free_unref_page_list( & pages_to_free) |
名称 | 描述 |
---|---|
pagevec_lru_move_fn | |
__pagevec_release | The pages which we're about to release may be in the deferred lru-addition* queues. That would prevent them from really being freed right now. That's* OK from a correctness point of view but is inefficient - those pages may be |
free_pages_and_swap_cache | Passed an array of pages, drop them all from swapcache and then release* them. They are removed from the LRU and freed if this is their last use. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |