Whamcloud - gitweb
LU-10899 obdclass: remove unused ll_import_cachep 19/33119/2
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 6 Sep 2018 10:24:30 +0000 (18:24 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 21 Sep 2018 03:30:51 +0000 (03:30 +0000)
The ll_import_cache is not used anywhere, and can be removed.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I3f43c81ffbf1385117f9ba1f8f9881388a3ebbe5
Reviewed-on: https://review.whamcloud.com/33119
Tested-by: Jenkins
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/genops.c

index 22ad827..5803557 100644 (file)
@@ -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 *obd_device_cachep;
 struct kmem_cache *obdo_cachep;
 EXPORT_SYMBOL(obdo_cachep);
-static struct kmem_cache *import_cachep;
 
 static struct workqueue_struct *zombie_wq;
 
 
 static struct workqueue_struct *zombie_wq;
 
@@ -907,10 +906,6 @@ void obd_cleanup_caches(void)
                kmem_cache_destroy(obdo_cachep);
                 obdo_cachep = NULL;
         }
                kmem_cache_destroy(obdo_cachep);
                 obdo_cachep = NULL;
         }
-        if (import_cachep) {
-               kmem_cache_destroy(import_cachep);
-                import_cachep = NULL;
-        }
 
         EXIT;
 }
 
         EXIT;
 }
@@ -933,13 +928,6 @@ int obd_init_caches(void)
        if (!obdo_cachep)
                GOTO(out, rc = -ENOMEM);
 
        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();
        RETURN(0);
 out:
        obd_cleanup_caches();