1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
11 int ldlm_cancel_lru(struct ldlm_namespace *ns, ldlm_sync_t sync);
14 void ldlm_resource_insert_lock_after(struct ldlm_lock *original,
15 struct ldlm_lock *new);
18 void ldlm_grant_lock(struct ldlm_lock *lock, void *data, int datalen,
21 ldlm_lock_create(struct ldlm_namespace *ns,
22 const struct lustre_handle *parent_lock_handle,
23 const struct ldlm_res_id,
24 ldlm_type_t type, ldlm_mode_t, ldlm_blocking_callback,
25 ldlm_completion_callback, ldlm_glimpse_callback, void *data,
27 ldlm_error_t ldlm_lock_enqueue(struct ldlm_namespace *, struct ldlm_lock **,
28 void *cookie, int *flags);
29 void ldlm_lock_addref_internal(struct ldlm_lock *, __u32 mode);
30 void ldlm_lock_decref_internal(struct ldlm_lock *, __u32 mode);
31 void ldlm_add_ast_work_item(struct ldlm_lock *lock, struct ldlm_lock *new,
32 void *data, int datalen);
33 int ldlm_reprocess_queue(struct ldlm_resource *res, struct list_head *queue);
34 int ldlm_run_ast_work(struct ldlm_namespace *, struct list_head *rpc_list);
37 int ldlm_bl_to_thread(struct ldlm_namespace *ns, struct ldlm_lock_desc *ld,
38 struct ldlm_lock *lock);
39 void ldlm_handle_bl_callback(struct ldlm_namespace *ns,
40 struct ldlm_lock_desc *ld, struct ldlm_lock *lock);
43 int ldlm_process_plain_lock(struct ldlm_lock *lock, int *flags, int first_enq,
47 int ldlm_process_extent_lock(struct ldlm_lock *lock, int *flags, int first_enq,
51 int ldlm_process_flock_lock(struct ldlm_lock *lock, int *flags, int first_enq,
54 /* ldlm_inodebits.c */
55 int ldlm_process_inodebits_lock(struct ldlm_lock *lock, int *flags,
56 int first_enq, ldlm_error_t *err);
59 void l_check_ns_lock(struct ldlm_namespace *ns);
60 void l_check_no_ns_lock(struct ldlm_namespace *ns);
62 extern cfs_proc_dir_entry_t *ldlm_svc_proc_dir;
65 struct ptlrpc_service *ldlm_cb_service;
66 struct ptlrpc_service *ldlm_cancel_service;
67 struct ptlrpc_client *ldlm_client;
68 struct ptlrpc_connection *ldlm_server_conn;
69 struct ldlm_bl_pool *ldlm_bl_pool;