Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int mpage_writepages(struct address_space *mapping, struct writeback_control *wbc, get_block_t get_block)

Type:int

Parameter:

TypeParameterName
struct address_space *mapping
struct writeback_control *wbc
get_block_tget_block
718  blk_start_plug( & plug)
720  If Not get_block Then ret = generic_writepages - walk the list of dirty pages of the given address space and writepage() all of them
722  Else
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  If bio Then
737  blk_finish_plug( & plug)
738  Return ret