函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-29 10:38:08
Last Modify:2020-03-18 19:19:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

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

返回类型:int

参数:

类型参数名称
struct file *file
1879  inode等于file_inode(file)
1881  sync_it等于0
1885  如果IS_NOCMTIME(inode)则返回: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  如果非timespec64_equal( & i_mtime, & now)则sync_it等于S_MTIME
1892  如果非timespec64_equal( & i_ctime, & now)则sync_it或等于S_CTIME
1895  如果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.sync_it或等于S_VERSION
1898  如果非sync_it则返回:0
1902  如果__mnt_want_write_file(file)则返回: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  返回:ret
调用者
名称描述
__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
filemap_page_mkwrite