Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swap.c Create Date:2022-07-28 14:13:39
Last Modify:2022-05-23 13:40:24 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sed by __split_huge_page_refcount()

Proto:void lru_add_page_tail(struct page *page, struct page *page_tail, struct lruvec *lruvec, struct list_head *list)

Type:void

Parameter:

TypeParameterName
struct page *page
struct page *page_tail
struct lruvec *lruvec
struct list_head *list
891  file = 0
893  VM_BUG_ON_PAGE(!PageHead(page), page)
894  VM_BUG_ON_PAGE(PageCompound(page_tail), page)
895  VM_BUG_ON_PAGE(PageLRU(page_tail), page)
896  lockdep_assert_held( & Write-intensive fields used by page reclaim )
898  If Not list Then SetPageLRU(page_tail)
901  If Value is more likely to compile time(PageLRU(page)) Then list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
903  Else if list Then
905  get_page(page_tail)
906  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
907  Else
915  add_page_to_lru_list_tail(page_tail, lruvec, page_lru - which LRU list should a page be on?*@page: the page to test* Returns the LRU list a page should be on, as an index* into the array of LRU lists.)
919  If Not PageUnevictable(page) Then update_page_reclaim_stat(lruvec, file, PageActive(page_tail))
Caller
NameDescribe
__split_huge_page_tail