函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\mpage.c Create Date:2022-07-29 10:47:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mpage_writepages - walk the list of dirty pages of the given address space & writepage() all of them*@mapping: address space structure to write*@wbc: subtract the number of written pages from *@wbc->nr_to_write

函数原型:int mpage_writepages(struct address_space *mapping, struct writeback_control *wbc, get_block_t get_block)

返回类型:int

参数:

类型参数名称
struct address_space *mapping
struct writeback_control *wbc
get_block_tget_block
718  blk_start_plug( & plug)
720  如果非get_blockret等于generic_writepages - walk the list of dirty pages of the given address space and writepage() all of them
722  否则
723  struct mpage_data mpd = {bio = NULL, last_block_in_bio = 0, get_block = get_block, use_writepage = 1, }
730  ret等于write_cache_pages - walk the list of dirty pages of the given address space and write all of them
731  如果bio
732  op_flags等于如果sync_mode恒等于Wait on every mapping REQ_SYNC否则0
737  blk_finish_plug( & plug)
738  返回:ret