Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__split_huge_page_tail

Proto:static void __split_huge_page_tail(struct page *head, int tail, struct lruvec *lruvec, struct list_head *list)

Type:void

Parameter:

TypeParameterName
struct page *head
inttail
struct lruvec *lruvec
struct list_head *list
2440  page_tail = head + tail
2442  VM_BUG_ON_PAGE(atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.) != - 1, page_tail)
2450  Atomic flags, some possibly * updated asynchronously &= ~Flags checked when a page is prepped for return by the page allocator
2451  Atomic flags, some possibly * updated asynchronously |= Atomic flags, some possibly * updated asynchronously & ( 1L << PG_referenced | 1L << PG_swapbacked | 1L << PG_swapcache | 1L << PG_mlocked | 1L << PG_uptodate | 1L << PG_active | 1L << PG_workingset | 1L << PG_locked | 1L << PG_unevictable | 1L << PG_dirty )
2464  VM_BUG_ON_PAGE(tail > 2 && See page-flags.h for PAGE_MAPPING_FLAGS != mm/page_alloc.c ***********, page_tail)
2466  See page-flags.h for PAGE_MAPPING_FLAGS = See page-flags.h for PAGE_MAPPING_FLAGS
2467  Our offset within mapping. = Our offset within mapping. + tail
2470  smp_wmb()
2478  clear_compound_head(page_tail)
2481  page_ref_unfreeze(page_tail, 1 + (!PageAnon(head) || PageSwapCache(head)))
2484  If page_is_young(head) Then set_page_young(page_tail)
2486  If page_is_idle(head) Then set_page_idle(page_tail)
2489  page_cpupid_xchg_last(page_tail, page_cpupid_last(head))
2496  sed by __split_huge_page_refcount()
Caller
NameDescribe
__split_huge_page