From: adilger Date: Thu, 5 May 2005 20:16:49 +0000 (+0000) Subject: Branch: b1_4 X-Git-Tag: v1_7_100~1^25~8^2~153 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e0263214613433873eab4c1eddcc6fc5acc86c72;p=fs%2Flustre-release.git Branch: b1_4 Remove unused function. class_find_client_obd_notype() does the same and is more generic. b=6242 --- diff --git a/lustre/obdclass/uuid.c b/lustre/obdclass/uuid.c index 2226f90..dd66ae5 100644 --- a/lustre/obdclass/uuid.c +++ b/lustre/obdclass/uuid.c @@ -141,26 +141,3 @@ void class_uuid_unparse(class_uuid_t uu, struct obd_uuid *out) uuid.node[0], uuid.node[1], uuid.node[2], uuid.node[3], uuid.node[4], uuid.node[5]); } - -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; -}