HomeFreeBSD

Add kmem_cache.h include to default context

Description

Add kmem_cache.h include to default context

As part of the spl kmem/vmem refactoring the kmem_cache_* functions
were split in to their own kmem_cache.h header. This was done in
part so that kmem_* consumers would not be forced to include the
kmem_cache_* functions which mask several Linux SLAB/SLAB functions.

Because of this we now much explicitly include kmem_cache.h in the
zfs_context.h. However, consumers such as Lustre which need access
to the KM_FLAGS but not the kmem_cache_* functions can now safely
just include kmem.h.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 9 2014, 12:03 AM
Parents
rG79c76d5b65b1: Change KM_PUSHPAGE -> KM_SLEEP
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG60e1eda929b0: Add kmem_cache.h include to default context (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jan 16 2015, 10:41 PM