diff options
author | Brian Behlendorf <[email protected]> | 2014-12-08 19:03:50 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-01-16 14:41:28 -0800 |
commit | 60e1eda929b04445a0ab0451674f83b86c6ec347 (patch) | |
tree | 4a3a7f69eb2baedefec32b38d21daface6dfb2f6 /include/sys | |
parent | 79c76d5b65b19a602d4c7a340da7bf90d4a0c4f8 (diff) |
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 <[email protected]>
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/zfs_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h index 2fde3b5fc..3dc54f1d7 100644 --- a/include/sys/zfs_context.h +++ b/include/sys/zfs_context.h @@ -41,6 +41,7 @@ #include <sys/bitmap.h> #include <sys/cmn_err.h> #include <sys/kmem.h> +#include <sys/kmem_cache.h> #include <sys/vmem.h> #include <sys/taskq.h> #include <sys/buf.h> |