Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:remove_node_from_stable_tree

Proto:static void remove_node_from_stable_tree(struct stable_node *stable_node)

Type:void

Parameter:

TypeParameterName
struct stable_node *stable_node
636  BUG_ON(rmap_hlist_len < 0)
639  If next Then The number of page slots additionally sharing those nodes --
641  Else The number of nodes in the stable tree --
643  VM_BUG_ON(rmap_hlist_len <= 0)
644  rmap_hlist_len--
645  put_anon_vma( when stable )
646  + low bits used for flags below &= PAGE_MASK
647  cond_resched()
658  BUILD_BUG_ON - break compile if a condition is true(STABLE_NODE_DUP_HEAD <= & Recently migrated nodes of stable tree, pending proper placement )
659  BUILD_BUG_ON - break compile if a condition is true(STABLE_NODE_DUP_HEAD >= & Recently migrated nodes of stable tree, pending proper placement + 1)
662  If when listed for migration == Recently migrated nodes of stable tree, pending proper placement Then deletes entry from list
664  Else stable_node_dup_del(stable_node)
666  free_stable_node(stable_node)
Caller
NameDescribe
get_ksm_pageget_ksm_page: checks if the page indicated by the stable node* is still its ksm page, despite having held no reference to it.* In which case we can trust the content of the page, and it* returns the gotten page; but if the page has now been zapped,