From 1e2c74127eed5d17d079cea48fc842ec0cd2a1ff Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 25 Oct 2006 16:58:06 +0000 Subject: [PATCH] mdt: add const to make compiler happy. --- lustre/mdt/mdt_handler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 50b4515..48e3e1f 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -1479,7 +1479,7 @@ static int mdt_enqueue(struct mdt_thread_info *info) * converted dlm request. */ LASSERT(info->mti_dlm_req != NULL); - + if (OBD_FAIL_CHECK(OBD_FAIL_LDLM_ENQUEUE)) { info->mti_fail_id = OBD_FAIL_LDLM_ENQUEUE; return 0; @@ -1609,7 +1609,7 @@ int mdt_object_lock(struct mdt_thread_info *info, struct mdt_object *o, */ res_id->name[LUSTRE_RES_ID_HSH_OFF] = lh->mlh_pdo_hash; } - + policy->l_inodebits.bits = ibits; /* @@ -2644,9 +2644,9 @@ static int mdt_intent_policy(struct ldlm_namespace *ns, req_capsule_extend(pill, &RQF_LDLM_INTENT); it = req_capsule_client_get(pill, &RMF_LDLM_INTENT); if (it != NULL) { - struct ldlm_request *dlmreq; + const struct ldlm_request *dlmreq; __u64 req_bits; - + LDLM_DEBUG(lock, "intent policy opc: %s\n", ldlm_it2str(it->opc)); -- 1.8.3.1