From 28679142827e407e8b28f3ae5e2ecfc17013fbf4 Mon Sep 17 00:00:00 2001 From: deen Date: Sat, 1 Dec 2007 15:05:16 +0000 Subject: [PATCH] Little fixes proposed by Andreas after inspection. b=11301 --- lustre/ldlm/ldlm_internal.h | 2 +- lustre/ldlm/ldlm_lockd.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/ldlm/ldlm_internal.h b/lustre/ldlm/ldlm_internal.h index 3ab7681..35eedf8 100644 --- a/lustre/ldlm/ldlm_internal.h +++ b/lustre/ldlm/ldlm_internal.h @@ -60,7 +60,7 @@ int ldlm_namespace_free_post(struct ldlm_namespace *ns, int force); struct ldlm_cb_set_arg { struct ptlrpc_request_set *set; atomic_t restart; - __u16 type; /* LDLM_BL_CALLBACK or LDLM_CP_CALLBACK */ + __u32 type; /* LDLM_BL_CALLBACK or LDLM_CP_CALLBACK */ }; void ldlm_grant_lock(struct ldlm_lock *lock, struct list_head *work_list); diff --git a/lustre/ldlm/ldlm_lockd.c b/lustre/ldlm/ldlm_lockd.c index a8dd851..e73f363 100644 --- a/lustre/ldlm/ldlm_lockd.c +++ b/lustre/ldlm/ldlm_lockd.c @@ -541,7 +541,7 @@ int ldlm_server_blocking_ast(struct ldlm_lock *lock, struct ldlm_lock_desc *desc, void *data, int flag) { - struct ldlm_cb_set_arg *arg = (struct ldlm_cb_set_arg *)data; + struct ldlm_cb_set_arg *arg = data; struct ldlm_request *body; struct ptlrpc_request *req; int size[] = { [MSG_PTLRPC_BODY_OFF] = sizeof(struct ptlrpc_body), @@ -630,7 +630,7 @@ int ldlm_server_blocking_ast(struct ldlm_lock *lock, int ldlm_server_completion_ast(struct ldlm_lock *lock, int flags, void *data) { - struct ldlm_cb_set_arg *arg = (struct ldlm_cb_set_arg *)data; + struct ldlm_cb_set_arg *arg = data; struct ldlm_request *body; struct ptlrpc_request *req; struct timeval granted_time; -- 1.8.3.1