函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lease_get_mtime - update modified time of an inode with exclusive lease*@inode: the inode*@time: pointer to a timespec which contains the last modified time* This is to force NFS clients to flush their caches for files with* exclusive leases

函数原型:void lease_get_mtime(struct inode *inode, struct timespec64 *time)

返回类型:void

参数:

类型参数名称
struct inode *inode
struct timespec64 *time
1693  bool has_lease = false
1697  ctx等于smp_load_acquire( & i_flctx)
1698  如果ctx且非链表为空且不修改
1699  加自旋锁
1700  fl等于list_first_entry_or_null - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.( & flc_lease, structfile_lock, fl_list)
1702  如果flfl_type恒等于F_WRLCKhas_lease = true
1704  自旋锁解锁
1707  如果has_leasetime等于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.