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:We already had a lease on this file; just change its type

Proto:int lease_modify(struct file_lock *fl, int arg, struct list_head *dispose)

Type:int

Parameter:

TypeParameterName
struct file_lock *fl
intarg
struct list_head *dispose
1485  error = assign_type(fl, arg)
1487  If error Then Return error
1489  lease_clear_pending(fl, arg)
1490  Wake up processes blocked waiting for blocker.* Must be called with the inode->flc_lock held!
1491  If arg == F_UNLCK Then
1492  filp = fl_file
1494  f_delown(filp)
1495  posix.1b rt signal to be delivered on IO = 0
1496  async_helper() is used by almost all character device drivers* to set up the fasync queue, and for regular files by the file* lease code. It returns negative on error, 0 if it did no changes* and positive if it added/deleted the entry.
1497  If ( for lease break notifications != NULL) Then
1501  locks_delete_lock_ctx(fl, dispose)
1503  Return 0
Caller
NameDescribe
time_out_leases
locks_remove_leaseThe i_flctx must be valid when calling into here