From 5fc279bad00d472dcbc319741f49da34a18a242b Mon Sep 17 00:00:00 2001 From: pschwan Date: Tue, 27 May 2003 01:11:03 +0000 Subject: [PATCH] - remove duplicate client_tgtuuid2obd from ldlm_lib - export it from obdclass --- lustre/ldlm/ldlm_lib.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index a80f855..35e3b35 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -31,29 +31,6 @@ #include #include -struct obd_device *client_tgtuuid2obd(struct obd_uuid *tgtuuid) -{ - int i; - - for (i = 0; i < MAX_OBD_DEVICES; i++) { - struct obd_device *obd = &obd_dev[i]; - if (obd->obd_type == NULL) - continue; - if ((strncmp(obd->obd_type->typ_name, LUSTRE_OSC_NAME, - sizeof LUSTRE_OSC_NAME) == 0) || - (strncmp(obd->obd_type->typ_name, LUSTRE_MDC_NAME, - sizeof LUSTRE_MDC_NAME) == 0)) { - struct client_obd *cli = &obd->u.cli; - struct obd_import *imp = cli->cl_import; - if (strncmp(tgtuuid->uuid, imp->imp_target_uuid.uuid, - sizeof(imp->imp_target_uuid)) == 0) - return obd; - } - } - - return NULL; -} - int client_obd_setup(struct obd_device *obddev, obd_count len, void *buf) { struct ptlrpc_connection *conn; -- 1.8.3.1