函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__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

函数原型:int __filemap_fdatawrite_range(struct address_space *mapping, loff_t start, loff_t end, int sync_mode)

返回类型:int

参数:

类型参数名称
struct address_space *mapping
loff_tstart
loff_tend
intsync_mode
409  struct writeback_control wbc = {sync_mode = sync_mode, Write this many pages, and decrementthis for each page written = LONG_MAX, For a_ops->writepages(): if start or end are non-zero then this is* a hint that the filesystem need only write out the pages inside that* byterange. The byte at `end' is included in the writeout request. = start, range_end = end, }
416  如果非mapping_cap_writeback_dirty(mapping)或非Returns true if any of the pages in the mapping are marked with the tag.则返回:0
420  wbc_attach_fdatawrite_inode( & wbc, host)
421  ret等于do_writepages(mapping, & wbc)
422  wbc_detach_inode( & wbc)
423  返回:ret
调用者
名称描述
__filemap_fdatawrite
filemap_fdatawrite_range
filemap_write_and_wait_rangelemap_write_and_wait_range - write out & wait on a file range*@mapping: the address_space for the pages*@lstart: offset in bytes where the range starts*@lend: offset in bytes where the range ends (inclusive)
file_write_and_wait_rangele_write_and_wait_range - write out & wait on a file range*@file: file pointing to address_space with pages*@lstart: offset in bytes where the range starts*@lend: offset in bytes where the range ends (inclusive)
generic_fadvisePOSIX_FADV_WILLNEED could set PG_Referenced, and POSIX_FADV_NOREUSE could* deactivate the pages and clear PG_Referenced.
sync_file_range