diff options
Diffstat (limited to 'include/linux/lockd/lockd.h')
-rw-r--r-- | include/linux/lockd/lockd.h | 15 |
1 files changed, 7 insertions, 8 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 | /* |