函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\filemap.c Create Date:2022-07-27 15:26:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:struct page *grab_cache_page_write_begin(struct address_space *mapping, unsigned long index, unsigned flags)

返回类型:struct page

参数:

类型参数名称
struct address_space *mapping
unsigned longindex
unsignedflags
3254  fgp_flags等于FGP_LOCK按位或FGP_WRITE按位或FGP_CREAT
3256  如果flags按位与used by filesystem to direct* helper code (eg buffer layer)* to clear GFP_FS from alloc 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  如果pagewait_for_stable_page(page)
3264  返回:page
调用者
名称描述
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
simple_write_begin