diff options
author | Matthew Ahrens <[email protected]> | 2020-08-17 16:04:28 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-17 16:04:28 -0700 |
commit | 994de7e4b748465f175b7cc48995b5c44adf2200 (patch) | |
tree | 547497961283a5cc334fb57d8a2794c4b9aa226c /include | |
parent | 3df0c2fa32a37fbb95f32de20e737fdf65ec0f5b (diff) |
Remove KMC_KMEM and KMC_VMEM
`KMC_KMEM` and `KMC_VMEM` are now unused since all SPL-implemented
caches are `KMC_KVMEM`.
KMC_KMEM: Given the default value of `spl_kmem_cache_kmem_limit`, we
don't use kmalloc to back the SPL caches, instead we use kvmalloc
(KMC_KVMEM). The flag, module parameter, /proc entries, and associated
code are removed.
KMC_VMEM: This flag is not used, and kvmalloc() is always preferable to
vmalloc(). The flag, /proc entries, and associated code are removed.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Matthew Ahrens <[email protected]>
Closes #10673
Diffstat (limited to 'include')
-rw-r--r-- | include/os/linux/spl/sys/kmem_cache.h | 4 | ||||
-rw-r--r-- | include/sys/zfs_context.h | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/include/os/linux/spl/sys/kmem_cache.h b/include/os/linux/spl/sys/kmem_cache.h index c9fc1f749..ffb8c97c9 100644 --- a/include/os/linux/spl/sys/kmem_cache.h +++ b/include/os/linux/spl/sys/kmem_cache.h @@ -37,8 +37,6 @@ */ typedef enum kmc_bit { KMC_BIT_NODEBUG = 1, /* Default behavior */ - KMC_BIT_KMEM = 5, /* Use kmem cache */ - KMC_BIT_VMEM = 6, /* Use vmem cache */ KMC_BIT_KVMEM = 7, /* Use kvmalloc linux allocator */ KMC_BIT_SLAB = 8, /* Use Linux slab cache */ KMC_BIT_DEADLOCKED = 14, /* Deadlock detected */ @@ -60,8 +58,6 @@ typedef enum kmem_cbrc { } kmem_cbrc_t; #define KMC_NODEBUG (1 << KMC_BIT_NODEBUG) -#define KMC_KMEM (1 << KMC_BIT_KMEM) -#define KMC_VMEM (1 << KMC_BIT_VMEM) #define KMC_KVMEM (1 << KMC_BIT_KVMEM) #define KMC_SLAB (1 << KMC_BIT_SLAB) #define KMC_DEADLOCKED (1 << KMC_BIT_DEADLOCKED) diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h index 2abdb3e44..0d41941dd 100644 --- a/include/sys/zfs_context.h +++ b/include/sys/zfs_context.h @@ -402,8 +402,6 @@ void procfs_list_add(procfs_list_t *procfs_list, void *p); #define KM_NOSLEEP UMEM_DEFAULT #define KM_NORMALPRI 0 /* not needed with UMEM_DEFAULT */ #define KMC_NODEBUG UMC_NODEBUG -#define KMC_KMEM 0x0 -#define KMC_VMEM 0x0 #define KMC_KVMEM 0x0 #define kmem_alloc(_s, _f) umem_alloc(_s, _f) #define kmem_zalloc(_s, _f) umem_zalloc(_s, _f) |