Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\ksm.c Create Date:2022-07-28 15:40:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_mergeable_page

Proto:static struct page *get_mergeable_page(struct rmap_item *rmap_item)

Type:struct page

Parameter:

TypeParameterName
struct rmap_item *rmap_item
554  mm = mm
555  addr = + low bits used for flags below
559  lock for reading
560  vma = find_mergeable_vma(mm, addr)
561  If Not vma Then Go to out
564  page = follow_page(vma, addr, do get_page on page )
565  If IS_ERR_OR_NULL(page) Then Go to out
567  If PageAnon(page) Then
568  flush_anon_page(vma, page, addr)
569  flush_dcache_page(page)
570  Else
571  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
572  out :
573  page = NULL
575  lease a read lock
576  Return page
Caller
NameDescribe
unstable_tree_search_insertstable_tree_search_insert - search for identical page,* else insert rmap_item into the unstable tree.* This function searches for a page in the unstable tree identical to the* page currently being scanned; and if no identical page is found in the