Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-28 20:07:59
Last Modify:2020-03-18 19:19:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:le_update_time - update mtime and ctime time*@file: file accessed* Update the mtime and ctime members of an inode and mark the inode* for writeback

Proto:int file_update_time(struct file *file)

Type:int

Parameter:

TypeParameterName
struct file *file
1879  inode = file_inode(file)
1881  sync_it = 0
1885  If IS_NOCMTIME(inode) Then Return 0
1888  now = rrent_time - Return FS time*@inode: inode.* Return the current time truncated to the time granularity supported by* the fs.* Note that inode and inode->sb cannot be NULL.* Otherwise, the function warns and returns time without truncation.
1889  If Not timespec64_equal( & i_mtime, & now) Then sync_it = S_MTIME
1892  If Not timespec64_equal( & i_ctime, & now) Then sync_it |= S_CTIME
1895  If IS_I_VERSION(inode) && de_iversion_need_inc - is the i_version in need of being incremented?*@inode: inode to check* Returns whether the inode->i_version counter needs incrementing on the next* change. Just fetch the value and check the QUERIED flag. Then sync_it |= S_VERSION
1898  If Not sync_it Then Return 0
1902  If __mnt_want_write_file(file) Then Return 0
1905  ret = This does the actual work of updating an inodes time or version. Must have* had called mnt_want_write() before calling this.
1906  __mnt_drop_write_file(file)
1908  Return ret
Caller
NameDescribe
__generic_file_write_iter__generic_file_write_iter - write data to a file*@iocb: IO state structure (file, offset, etc.)*@from: iov_iter with data to write* This function does all the work needed for actually writing data to a* file
fault_dirty_shared_pageHandle dirtying of a page in shared file mapping on a write fault.* The function expects the page to be locked and unlocks it.
file_modifiedCaller must hold the file's inode lock