summaryrefslogtreecommitdiffstats
path: root/src/spl/linux-kmem.c
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-02-27 19:09:51 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-02-27 19:09:51 +0000
commitf1b59d2620ae2bd977e67e292f9bebc43049872c (patch)
tree914f1f0e03a05326af10cab4b374a023e74b8875 /src/spl/linux-kmem.c
parent3d4ea0ced6c2400d2b7d62d4f90b1a69d7e1a04e (diff)
Lots of build fixes. This is turning out to be a very good
idea since it forcefully codifing the ABI. Since the shim layer is no longer linked at build time in to the test suite we can;'t cut any corners and get away with it. Everything is working now with the exception of sorting setting Module.symvers properly. This may take a little Makefile reorg. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@5 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'src/spl/linux-kmem.c')
-rw-r--r--src/spl/linux-kmem.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/spl/linux-kmem.c b/src/spl/linux-kmem.c
index e5ebdc175..4dc7c01d8 100644
--- a/src/spl/linux-kmem.c
+++ b/src/spl/linux-kmem.c
@@ -172,9 +172,9 @@ kmem_cache_generic_shrinker(int nr_to_scan, unsigned int gfp_mask)
kmem_cache_t *
__kmem_cache_create(char *name, size_t size, size_t align,
- int (*constructor)(void *, void *, int),
- void (*destructor)(void *, void *),
- void (*reclaim)(void *),
+ kmem_constructor_t constructor,
+ kmem_destructor_t destructor,
+ kmem_reclaim_t reclaim,
void *priv, void *vmp, int flags)
{
kmem_cache_t *cache;
@@ -216,6 +216,7 @@ __kmem_cache_create(char *name, size_t size, size_t align,
return cache;
}
+EXPORT_SYMBOL(__kmem_cache_create);
/* Return codes discarded because Solaris implementation has void return */
void
@@ -239,11 +240,12 @@ __kmem_cache_destroy(kmem_cache_t *cache)
spin_unlock(&kmem_cache_cb_lock);
}
+EXPORT_SYMBOL(__kmem_cache_destroy);
-void
+void
__kmem_reap(void) {
- /* Since there's no easy hook in to linux to force all the registered
+ /* Since there's no easy hook in to linux to force all the registered
* shrinkers to run we just run the ones registered for this shim */
kmem_cache_generic_shrinker(KMC_REAP_CHUNK, GFP_KERNEL);
}
-
+EXPORT_SYMBOL(__kmem_reap);