Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__page_cache_alloc

Proto:struct page *__page_cache_alloc(gfp_t gfp)

Type:struct page

Parameter:

TypeParameterName
gfp_tgfp
971  If cpuset_do_page_mem_spread() Then
973  Do
977  When Not page && read_mems_allowed_retry(cpuset_mems_cookie) cycle
979  Return page
981  Return alloc_pages(gfp, 0)
Caller
NameDescribe
pagecache_get_pagepagecache_get_page - find and get a page reference*@mapping: the address_space to search*@offset: the page index*@fgp_flags: PCG flags*@gfp_mask: gfp mask to use for the page cache data page allocation* Looks up the page cache slot at @mapping & @offset.
do_read_cache_page
__do_page_cache_readahead__do_page_cache_readahead() actually reads a chunk of disk. It allocates* the pages first, then submits them for I/O. This avoids the very bad* behaviour which would occur if page allocations are causing VM writeback.
page_cache_alloc