diff options
Diffstat (limited to 'include/linux/lockd')
-rw-r--r-- | include/linux/lockd/lockd.h | 15 | ||||
-rw-r--r-- | include/linux/lockd/share.h | 3 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 777a91e1ac8f..8c1145669d06 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
@@ -134,13 +134,6 @@ struct nlm_block { | |||
134 | }; | 134 | }; |
135 | 135 | ||
136 | /* | 136 | /* |
137 | * Valid actions for nlmsvc_traverse_files | ||
138 | */ | ||
139 | #define NLM_ACT_CHECK 0 /* check for locks */ | ||
140 | #define NLM_ACT_MARK 1 /* mark & sweep */ | ||
141 | #define NLM_ACT_UNLOCK 2 /* release all locks */ | ||
142 | |||
143 | /* | ||
144 | * Global variables | 137 | * Global variables |
145 | */ | 138 | */ |
146 | extern struct rpc_program nlm_program; | 139 | extern struct rpc_program nlm_program; |
@@ -183,6 +176,12 @@ void nsm_release(struct nsm_handle *); | |||
183 | 176 | ||
184 | 177 | ||
185 | /* | 178 | /* |
179 | * This is used in garbage collection and resource reclaim | ||
180 | * A return value != 0 means destroy the lock/block/share | ||
181 | */ | ||
182 | typedef int (*nlm_host_match_fn_t)(struct nlm_host *cur, struct nlm_host *ref); | ||
183 | |||
184 | /* | ||
186 | * Server-side lock handling | 185 | * Server-side lock handling |
187 | */ | 186 | */ |
188 | u32 nlmsvc_lock(struct svc_rqst *, struct nlm_file *, | 187 | u32 nlmsvc_lock(struct svc_rqst *, struct nlm_file *, |
@@ -193,7 +192,7 @@ u32 nlmsvc_testlock(struct nlm_file *, struct nlm_lock *, | |||
193 | u32 nlmsvc_cancel_blocked(struct nlm_file *, struct nlm_lock *); | 192 | u32 nlmsvc_cancel_blocked(struct nlm_file *, struct nlm_lock *); |
194 | unsigned long nlmsvc_retry_blocked(void); | 193 | unsigned long nlmsvc_retry_blocked(void); |
195 | void nlmsvc_traverse_blocks(struct nlm_host *, struct nlm_file *, | 194 | void nlmsvc_traverse_blocks(struct nlm_host *, struct nlm_file *, |
196 | int action); | 195 | nlm_host_match_fn_t match); |
197 | void nlmsvc_grant_reply(struct svc_rqst *, struct nlm_cookie *, u32); | 196 | void nlmsvc_grant_reply(struct svc_rqst *, struct nlm_cookie *, u32); |
198 | 197 | ||
199 | /* | 198 | /* |
diff --git a/include/linux/lockd/share.h b/include/linux/lockd/share.h index c75a424ebe4c..cd7816e74c05 100644 --- a/include/linux/lockd/share.h +++ b/include/linux/lockd/share.h | |||
@@ -25,6 +25,7 @@ u32 nlmsvc_share_file(struct nlm_host *, struct nlm_file *, | |||
25 | struct nlm_args *); | 25 | struct nlm_args *); |
26 | u32 nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *, | 26 | u32 nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *, |
27 | struct nlm_args *); | 27 | struct nlm_args *); |
28 | void nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *, int); | 28 | void nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *, |
29 | nlm_host_match_fn_t); | ||
29 | 30 | ||
30 | #endif /* LINUX_LOCKD_SHARE_H */ | 31 | #endif /* LINUX_LOCKD_SHARE_H */ |