Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:leases_conflict

Proto:static bool leases_conflict(struct file_lock *lease, struct file_lock *breaker)

Type:bool

Parameter:

TypeParameterName
struct file_lock *lease
struct file_lock *breaker
1535  If (fl_flags & utstanding pNFS layout ) != (fl_flags & utstanding pNFS layout ) Then
1536  rc = false
1537  Go to trace
1539  If fl_flags & NFSv4 delegation && fl_flags & lease held on this file Then
1540  rc = false
1541  Go to trace
1544  rc = Determine if lock sys_fl blocks lock caller_fl. Common functionality* checks for shared/exclusive status of overlapping locks.
1545  trace :
1546  trace_leases_conflict(rc, lease, breaker)
1547  Return rc
Caller
NameDescribe
any_leases_conflict
__break_leaserevoke all outstanding leases on file