Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vfs_fsync_range - helper to sync a range of data & metadata to disk*@file: file to sync*@start: offset in bytes of the beginning of data range to sync*@end: offset in bytes of the end of data range (inclusive)*@datasync: perform only datasync

Proto:int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync)

Type:int

Parameter:

TypeParameterName
struct file *file
loff_tstart
loff_tend
intdatasync
191  inode = host
193  If Not fsync Then Return -EINVAL
195  If Not datasync && Misc & I_DIRTY_TIME Then mark_inode_dirty_sync(inode)
197  Return fsync(file, start, end, datasync)
Caller
NameDescribe
vfs_fsyncvfs_fsync - perform a fsync or fdatasync on a file*@file: file to sync*@datasync: only perform a fdatasync operation* Write back data and metadata for @file to disk. If @datasync is* set only metadata needed to access modified file data is written.
io_fsync_finish
dax_finish_sync_faultdax_finish_sync_fault - finish synchronous page fault*@vmf: The description of the fault*@pe_size: Size of entry to be inserted*@pfn: PFN to insert* This function ensures that the file range touched by the page fault is* stored persistently on the media
generic_write_syncSync the bytes written if this was a synchronous write. Expect ki_pos* to already be updated for the write, and will return either the amount* of bytes passed in, or an error if syncing the file failed.