diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-08-22 10:18:43 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@primarydata.com> | 2014-09-09 16:01:09 -0400 |
commit | 5c97d7b1479982a48cf2129062b880c2555049ac (patch) | |
tree | a0e740e0e35d0ccda973e4c13b84a89605fef176 /include | |
parent | 3fe0fff18fe87c6a2179837de68d1174903c6367 (diff) |
locks: New ops in lock_manager_operations for get/put owner
NFSD or other lockmanager may increase the owner's reference,
so adds two new options for copying and releasing owner.
v5: change order from 2/6 to 3/6
v4: rename lm_copy_owner/lm_release_owner to lm_get_owner/lm_put_owner
Reviewed-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 5ab86f44b697..3b07ce2698de 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -868,6 +868,8 @@ struct file_lock_operations { | |||
868 | struct lock_manager_operations { | 868 | struct lock_manager_operations { |
869 | int (*lm_compare_owner)(struct file_lock *, struct file_lock *); | 869 | int (*lm_compare_owner)(struct file_lock *, struct file_lock *); |
870 | unsigned long (*lm_owner_key)(struct file_lock *); | 870 | unsigned long (*lm_owner_key)(struct file_lock *); |
871 | void (*lm_get_owner)(struct file_lock *, struct file_lock *); | ||
872 | void (*lm_put_owner)(struct file_lock *); | ||
871 | void (*lm_notify)(struct file_lock *); /* unblock callback */ | 873 | void (*lm_notify)(struct file_lock *); /* unblock callback */ |
872 | int (*lm_grant)(struct file_lock *, int); | 874 | int (*lm_grant)(struct file_lock *, int); |
873 | void (*lm_break)(struct file_lock *); | 875 | void (*lm_break)(struct file_lock *); |