Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The i_flctx must be valid when calling into here

Proto:static void locks_remove_lease(struct file *filp, struct file_lock_context *ctx)

Type:void

Parameter:

TypeParameterName
struct file *filp
struct file_lock_context *ctx
2726  LIST_HEAD(dispose)
2728  If list_empty - tests whether a list is empty*@head: the list to test. Then Return
2731  percpu_down_read( & file_rwsem)
2732  spin_lock( & flc_lock)
2733  list_for_each_entry_safe - iterate over list of given type safe against removal of list entry*@pos: the type * to use as a loop cursor.*@n: another type * to use as temporary storage*@head: the head for your list.(fl, tmp, & flc_lease, fl_list)
2734  If filp == fl_file Then We already had a lease on this file; just change its type
2736  spin_unlock( & flc_lock)
2737  percpu_up_read( & file_rwsem)
2739  locks_dispose_list( & dispose)
Caller
NameDescribe
locks_remove_fileThis function is called on the last close of an open file.