5c1967ebe2
While portions of the code needed to support z_compress_level() and z_uncompress() where in place. In reality the current implementation was non-functional, it just was compilable. The critical missing component was to setup a workspace for the compress/uncompress stream structures to use. A kmem_cache was added for the workspace area because we require a large chunk of memory. This avoids to need to continually alloc/free this memory and vmap() the pages which is very slow. Several objects will reside in the per-cpu kmem_cache making them quick to acquire and release. A further optimization would be to adjust the implementation to additional ensure the memory is local to the cpu. Currently that may not be the case.
31 lines
1.2 KiB
Makefile
31 lines
1.2 KiB
Makefile
# Makefile.in for spl kernel module
|
|
|
|
MODULES := spl
|
|
EXTRA_CFLAGS = @KERNELCPPFLAGS@
|
|
EXTRA_CFLAGS += -I@abs_top_srcdir@/include
|
|
EXTRA_CFLAGS += -include @abs_top_builddir@/spl_config.h
|
|
|
|
# Solaris porting layer module
|
|
obj-m := spl.o
|
|
|
|
spl-objs += @top_srcdir@/module/spl/spl-debug.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-proc.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-kmem.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-thread.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-taskq.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-rwlock.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-vnode.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-err.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-time.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-kobj.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-module.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-generic.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-atomic.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-mutex.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-kstat.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-condvar.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-xdr.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-cred.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-tsd.o
|
|
spl-objs += @top_srcdir@/module/spl/spl-zlib.o
|