Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Warn about a page cache invalidation failure during a direct I/O write.

Proto:void dio_warn_stale_pagecache(struct file *filp)

Type:void

Parameter:

TypeParameterName
struct file *filp
3148  DEFINE_RATELIMIT_STATE(_rs, 86400 * HZ, DEFAULT_RATELIMIT_BURST)
3150  inode = file_inode(filp)
3153  seq_set - set a errseq_t for later reporting*@eseq: errseq_t field that should be set*@err: error to set (must be between -1 and -MAX_ERRNO)* This function sets the error in @eseq, and increments the sequence counter
3154  If __ratelimit( & _rs) Then
3155  path = file_path(filp, pathname, size of pathname )
3156  If IS_ERR(path) Then path = "(unknown)"
3158  pr_crit("Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O!\n")
3159  pr_crit("File: %s PID: %d Comm: %.20s\n", path, pid, comm)
Caller
NameDescribe
generic_file_direct_write
iomap_dio_complete
iomap_dio_rwmap_dio_rw() always completes O_[D]SYNC writes regardless of whether the IO* is being issued as AIO or not. This allows us to optimise pure data writes* to use REQ_FUA rather than requiring generic_write_sync() to issue a* REQ_FLUSH post write