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:
parent
79c76d5b65
commit
60e1eda929
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue