函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-27 15:34:42
Last Modify:2022-05-23 13:25:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_writepages

函数原型:int do_writepages(struct address_space *mapping, struct writeback_control *wbc)

返回类型:int

参数:

类型参数名称
struct address_space *mapping
struct writeback_control *wbc
2340  如果Write this many pages, and decrementthis for each page written 小于等于0则返回:0
2342  当1循环
2343  如果writepagesret等于writepages(mapping, wbc)
2345  否则ret等于generic_writepages - walk the list of dirty pages of the given address space and writepage() all of them
2347  如果ret不等于负ENOMEMsync_mode不等于WB_SYNC_ALL退出
2349  cond_resched()
2350  gestion_wait - wait for a backing_dev to become uncongested*@sync: SYNC or ASYNC IO*@timeout: timeout in jiffies* Waits for up to @timeout jiffies for a backing_dev (any backing_dev) to exit* write congestion
2352  返回:ret
调用者
名称描述
__filemap_fdatawrite_range__filemap_fdatawrite_range - start writeback on mapping dirty pages in range*@mapping: address space structure to write*@start: offset in bytes where the range starts*@end: offset in bytes where the range ends (inclusive)*@sync_mode: enable synchronous
__writeback_single_inodeWrite out an inode and its dirty pages. Do not update the writeback list* linkage. That is left to the caller. The caller is also responsible for* setting I_SYNC flag and calling inode_sync_complete() to clear it.