aboutsummaryrefslogtreecommitdiffstats
path: root/module/splat
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-12-08 13:04:42 -0500
committerBrian Behlendorf <[email protected]>2015-01-16 13:55:08 -0800
commite5b9b344c728bb0d9304f1a143db9255901dc5fe (patch)
tree9c8fb75b9cfc7a6cef72b2c6a7cc08ef11b9a589 /module/splat
parent6ecf6d7228fbb29cfe6a335f5afc20f75493a791 (diff)
Refactor existing code
This change introduces no functional changes to the memory management interfaces. It only restructures the existing codes by separating the kmem, vmem, and kmem cache implementations in the separate source and header files. Splitting this functionality in to separate files required the addition of spl_vmem_{init,fini}() and spl_kmem_cache_{initi,fini}() functions. Additionally, several minor changes to the #include's were required to accommodate the removal of extraneous header from kmem.h. But again, while large this patch introduces no functional changes. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/splat')
-rw-r--r--module/splat/splat-condvar.c3
-rw-r--r--module/splat/splat-internal.h1
-rw-r--r--module/splat/splat-kmem.c3
-rw-r--r--module/splat/splat-taskq.c2
-rw-r--r--module/splat/splat-zlib.c1
5 files changed, 9 insertions, 1 deletions
diff --git a/module/splat/splat-condvar.c b/module/splat/splat-condvar.c
index 3ee2ffc9e..ed633acda 100644
--- a/module/splat/splat-condvar.c
+++ b/module/splat/splat-condvar.c
@@ -24,8 +24,9 @@
* Solaris Porting LAyer Tests (SPLAT) Condition Variable Tests.
\*****************************************************************************/
-#include <linux/kthread.h>
#include <sys/condvar.h>
+#include <sys/timer.h>
+#include <sys/thread.h>
#include "splat-internal.h"
#define SPLAT_CONDVAR_NAME "condvar"
diff --git a/module/splat/splat-internal.h b/module/splat/splat-internal.h
index eff8a9e74..832132696 100644
--- a/module/splat/splat-internal.h
+++ b/module/splat/splat-internal.h
@@ -27,6 +27,7 @@
#include "splat-ctl.h"
#include <sys/mutex.h>
+#include <linux/file_compat.h>
#define SPLAT_SUBSYSTEM_INIT(type) \
({ splat_subsystem_t *_sub_; \
diff --git a/module/splat/splat-kmem.c b/module/splat/splat-kmem.c
index cf47ce65a..7edc85990 100644
--- a/module/splat/splat-kmem.c
+++ b/module/splat/splat-kmem.c
@@ -25,7 +25,10 @@
\*****************************************************************************/
#include <sys/kmem.h>
+#include <sys/kmem_cache.h>
+#include <sys/vmem.h>
#include <sys/thread.h>
+#include <sys/vmsystm.h>
#include "splat-internal.h"
#define SPLAT_KMEM_NAME "kmem"
diff --git a/module/splat/splat-taskq.c b/module/splat/splat-taskq.c
index d8406f159..8229fed39 100644
--- a/module/splat/splat-taskq.c
+++ b/module/splat/splat-taskq.c
@@ -25,8 +25,10 @@
\*****************************************************************************/
#include <sys/kmem.h>
+#include <sys/vmem.h>
#include <sys/random.h>
#include <sys/taskq.h>
+#include <sys/timer.h>
#include <linux/delay.h>
#include "splat-internal.h"
diff --git a/module/splat/splat-zlib.c b/module/splat/splat-zlib.c
index c614c5e6c..eaa48369d 100644
--- a/module/splat/splat-zlib.c
+++ b/module/splat/splat-zlib.c
@@ -27,6 +27,7 @@
#include <sys/zmod.h>
#include <sys/random.h>
#include <sys/kmem.h>
+#include <sys/vmem.h>
#include "splat-internal.h"
#define SPLAT_ZLIB_NAME "zlib"