函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int file_check_and_advance_wb_err(struct file *file)

返回类型:int

参数:

类型参数名称
struct file *file
734  err等于0
735  old等于READ_ONCE(f_wb_err)
736  mapping等于f_mapping
739  如果seq_check() - Has an error occurred since a particular sample point?*@eseq: Pointer to errseq_t value to be checked.*@since: Previously-sampled errseq_t from which to check.* Grab the value that eseq points to, and see if it has changed @since
741  加自旋锁
742  old等于f_wb_err
743  err等于seq_check_and_advance() - Check an errseq_t and advance to current value
745  trace_file_check_and_advance_wb_err(file, old)
746  自旋锁解锁
754  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
755  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
756  返回:err
调用者
名称描述
file_fdatawait_rangele_fdatawait_range - wait for writeback to complete*@file: file pointing to address space structure to wait for*@start_byte: offset in bytes where the range starts*@end_byte: offset in bytes where the range ends (inclusive)* Walk the list of
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_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