Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__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

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

Type:int

Parameter:

TypeParameterName
struct file *file
loff_tstart
loff_tend
intdatasync
996  inode = host
1000  err = 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)
1001  If err Then Return err
1004  inode_lock(inode)
1005  ret = sync_mapping_buffers(i_mapping)
1006  If Not (Misc & I_DIRTY_ALL) Then Go to out
1008  If datasync && Not (Misc & Data-related inode changes pending) Then Go to out
1011  err = sync_inode_metadata(inode, 1)
1012  If ret == 0 Then ret = err
1015  out :
1016  inode_unlock(inode)
1018  err = 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
1019  If ret == 0 Then ret = err
1021  Return ret
Caller
NameDescribe
generic_file_fsyncgeneric_file_fsync - generic fsync implementation for simple filesystems* with flush*@file: file to synchronize*@start: start offset in bytes*@end: end offset in bytes (inclusive)*@datasync: only synchronize essential metadata if true