zfs/module/splat
Brian Behlendorf ceb3872825 Fix KMC_OFFSLAB type caches
Because spl_slab_size() was always returning -ENOSPC for caches of
type KMC_OFFSLAB the cache could never be created.  Additionally
the slab size is rounded up to a page which is what kv_alloc()
expects.  The kv_alloc() code will minimally allocate a page,
in the KMC_OFFSLAB case this could be reduced.

The basic regression tests kmem:slab_small, kmem:slab_large,
and kmem:slab_align regression were updated to test KMC_OFFSLAB.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ying Zhu <casualfisher@gmail.com>
Closes #266
2013-07-30 15:39:23 -07:00
..
Makefile.in Add script for builtin module building. 2012-07-26 15:13:09 -07:00
splat-atomic.c Linux 3.10 compat: add missing include of linux/slab.h 2013-07-08 15:21:28 -07:00
splat-condvar.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-cred.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-ctl.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-generic.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-internal.h Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-kmem.c Fix KMC_OFFSLAB type caches 2013-07-30 15:39:23 -07:00
splat-kobj.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-linux.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-list.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-mutex.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-random.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-rwlock.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-taskq.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-thread.c Linux 3.10 compat: add missing include of linux/slab.h 2013-07-08 15:21:28 -07:00
splat-time.c Linux 3.10 compat: add missing include of linux/slab.h 2013-07-08 15:21:28 -07:00
splat-vnode.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-zlib.c Refresh links to web site 2013-03-04 19:09:34 -08:00