diff options
author | Matthew Ahrens <[email protected]> | 2020-07-30 13:51:31 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-08-05 10:28:01 -0700 |
commit | 3c09f6949abfce179286d237665761dc27b58be2 (patch) | |
tree | 49995ec0463285f819d5931d0fceb3effb1656d2 | |
parent | d519c10575602952258f7e9e300af79a2b04d801 (diff) |
Remove KMC_QCACHE
Remove dead code to make the implementation easier to understand.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Ahrens <[email protected]>
Closes #10650
-rw-r--r-- | include/os/linux/spl/sys/kmem_cache.h | 2 | ||||
-rw-r--r-- | module/os/linux/spl/spl-kmem-cache.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/include/os/linux/spl/sys/kmem_cache.h b/include/os/linux/spl/sys/kmem_cache.h index f152f6263..a659df8ed 100644 --- a/include/os/linux/spl/sys/kmem_cache.h +++ b/include/os/linux/spl/sys/kmem_cache.h @@ -38,7 +38,6 @@ typedef enum kmc_bit { KMC_BIT_NODEBUG = 1, /* Default behavior */ KMC_BIT_NOMAGAZINE = 2, /* XXX: Unsupported */ - KMC_BIT_QCACHE = 4, /* XXX: Unsupported */ KMC_BIT_KMEM = 5, /* Use kmem cache */ KMC_BIT_VMEM = 6, /* Use vmem cache */ KMC_BIT_KVMEM = 7, /* Use kvmalloc linux allocator */ @@ -63,7 +62,6 @@ typedef enum kmem_cbrc { #define KMC_NODEBUG (1 << KMC_BIT_NODEBUG) #define KMC_NOMAGAZINE (1 << KMC_BIT_NOMAGAZINE) -#define KMC_QCACHE (1 << KMC_BIT_QCACHE) #define KMC_KMEM (1 << KMC_BIT_KMEM) #define KMC_VMEM (1 << KMC_BIT_VMEM) #define KMC_KVMEM (1 << KMC_BIT_KVMEM) diff --git a/module/os/linux/spl/spl-kmem-cache.c b/module/os/linux/spl/spl-kmem-cache.c index 8a4a15075..d3afcd54d 100644 --- a/module/os/linux/spl/spl-kmem-cache.c +++ b/module/os/linux/spl/spl-kmem-cache.c @@ -721,7 +721,6 @@ spl_magazine_destroy(spl_kmem_cache_t *skc) * KMC_KVMEM Force kvmem backed SPL cache * KMC_SLAB Force Linux slab backed cache * KMC_NODEBUG Disable debugging (unsupported) - * KMC_QCACHE Disable qcache (unsupported) * KMC_NOMAGAZINE Enabled for kmem/vmem, Disabled for Linux slab */ spl_kmem_cache_t * @@ -737,7 +736,6 @@ spl_kmem_cache_create(char *name, size_t size, size_t align, * Unsupported flags */ ASSERT0(flags & KMC_NOMAGAZINE); - ASSERT0(flags & KMC_QCACHE); ASSERT(vmp == NULL); ASSERT(reclaim == NULL); |