函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int file_write_and_wait_range(struct file *file, loff_t lstart, loff_t lend)

返回类型:int

参数:

类型参数名称
struct file *file
loff_tlstart
loff_tlend
778  err等于0
779  mapping等于f_mapping
781  如果Returns true if writeback might be needed or already in progress.
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  如果err不等于负EIO__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  如果非errerr等于err2
791  返回:err
调用者
名称描述
blkdev_fsync
__generic_file_fsync__generic_file_fsync - generic fsync implementation for simple filesystems*@file: file to synchronize*@start: start offset in bytes*@end: end offset in bytes (inclusive)*@datasync: only synchronize essential metadata if true* This is a generic