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>
This commit is contained in:
Brian Behlendorf 2014-12-08 19:03:50 -05:00
parent 79c76d5b65
commit 60e1eda929
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#include <sys/bitmap.h> #include <sys/bitmap.h>
#include <sys/cmn_err.h> #include <sys/cmn_err.h>
#include <sys/kmem.h> #include <sys/kmem.h>
#include <sys/kmem_cache.h>
#include <sys/vmem.h> #include <sys/vmem.h>
#include <sys/taskq.h> #include <sys/taskq.h>
#include <sys/buf.h> #include <sys/buf.h>