From: Andreas Dilger Date: Thu, 6 Sep 2018 10:24:30 +0000 (+0800) Subject: LU-10899 obdclass: remove unused ll_import_cachep X-Git-Tag: 2.11.56~67 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e2325011072954128273f295d545a920b2a271e4;p=fs%2Flustre-release.git LU-10899 obdclass: remove unused ll_import_cachep The ll_import_cache is not used anywhere, and can be removed. Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: I3f43c81ffbf1385117f9ba1f8f9881388a3ebbe5 Reviewed-on: https://review.whamcloud.com/33119 Tested-by: Jenkins Reviewed-by: John L. Hammond Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index 22ad827..5803557 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -54,7 +54,6 @@ static struct obd_device *obd_devs[MAX_OBD_DEVICES]; static struct kmem_cache *obd_device_cachep; struct kmem_cache *obdo_cachep; EXPORT_SYMBOL(obdo_cachep); -static struct kmem_cache *import_cachep; static struct workqueue_struct *zombie_wq; @@ -907,10 +906,6 @@ void obd_cleanup_caches(void) kmem_cache_destroy(obdo_cachep); obdo_cachep = NULL; } - if (import_cachep) { - kmem_cache_destroy(import_cachep); - import_cachep = NULL; - } EXIT; } @@ -933,13 +928,6 @@ int obd_init_caches(void) if (!obdo_cachep) GOTO(out, rc = -ENOMEM); - LASSERT(import_cachep == NULL); - import_cachep = kmem_cache_create("ll_import_cache", - sizeof(struct obd_import), - 0, 0, NULL); - if (!import_cachep) - GOTO(out, rc = -ENOMEM); - RETURN(0); out: obd_cleanup_caches();