Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int file_write_and_wait_range(struct file *file, loff_t lstart, loff_t lend)

Type:int

Parameter:

TypeParameterName
struct file *file
loff_tlstart
loff_tlend
778  err = 0
779  mapping = f_mapping
781  If Returns true if writeback might be needed or already in progress. Then
782  err = __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
785  If err != -EIO Then __filemap_fdatawait_range(mapping, lstart, lend)
788  err2 = le_check_and_advance_wb_err - report wb error (if any) that was previously* and advance wb_err to current one*@file: struct file on which the error is being reported* When userland calls fsync (or something like nfsd does the equivalent), we* want to
789  If Not err Then err = err2
791  Return err
Caller
NameDescribe
blkdev_fsync