Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:huge_add_to_page_cache

Proto:int huge_add_to_page_cache(struct page *page, struct address_space *mapping, unsigned long idx)

Type:int

Parameter:

TypeParameterName
struct page *page
struct address_space *mapping
unsigned longidx
3768  inode = host
3769  h = hstate_inode(inode)
3770  err = Like add_to_page_cache_locked, but used to add newly allocated pages:* the page is new, so we can just run __SetPageLocked() against it.
3772  If err Then Return err
3774  Private page markings that may be used by the filesystem that owns the page* for its own purposes.* - PG_private and PG_private_2 cause releasepage() and co to be invoked
3780  Dirty a page
3782  spin_lock( & _blocks, i_bytes, maybe i_size )
3783  i_blocks += blocks_per_huge_page(h)
3784  spin_unlock( & _blocks, i_bytes, maybe i_size )
3785  Return 0
Caller
NameDescribe
hugetlb_no_page
hugetlb_mcopy_atomic_pteUsed by userfaultfd UFFDIO_COPY. Based on mcopy_atomic_pte with* modifications for huge pages.