Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Find or create a page at the given pagecache position. Return the locked* page. This function is specifically for buffered writes.

Proto:struct page *grab_cache_page_write_begin(struct address_space *mapping, unsigned long index, unsigned flags)

Type:struct page

Parameter:

TypeParameterName
struct address_space *mapping
unsigned longindex
unsignedflags
3254  fgp_flags = FGP_LOCK | FGP_WRITE | FGP_CREAT
3256  If flags & used by filesystem to direct* helper code (eg buffer layer)* to clear GFP_FS from alloc Then fgp_flags |= FGP_NOFS
3259  page = pagecache_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.
3261  If page Then wait_for_stable_page(page)
3264  Return page
Caller
NameDescribe
block_write_beginlock_write_begin takes care of the basic task of block allocation and* bringing partial write blocks uptodate first.* The filesystem needs to handle block truncation upon failure.
nobh_write_beginOn entry, the page is fully not uptodate.* On exit the page is fully uptodate in the areas outside (from,to)* The filesystem needs to handle block truncation upon failure.
iomap_write_begin