Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\filemap.c Create Date:2022-07-28 14:00:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:int __filemap_fdatawrite_range(struct address_space *mapping, loff_t start, loff_t end, int sync_mode)

Type:int

Parameter:

TypeParameterName
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  If Not mapping_cap_writeback_dirty(mapping) || Not Returns true if any of the pages in the mapping are marked with the tag. Then Return 0
420  wbc_attach_fdatawrite_inode( & wbc, host)
421  ret = do_writepages(mapping, & wbc)
422  wbc_detach_inode( & wbc)
423  Return ret
Caller
NameDescribe
__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.