]> Git Repo - linux.git/commitdiff
mm/slub: remove unused kmem_cache_order_objects max
authorMiaohe Lin <[email protected]>
Fri, 29 Apr 2022 09:05:45 +0000 (17:05 +0800)
committerVlastimil Babka <[email protected]>
Mon, 2 May 2022 08:48:40 +0000 (10:48 +0200)
max field holds the largest slab order that was ever used for a slab cache.
But it's unused now. Remove it.

Signed-off-by: Miaohe Lin <[email protected]>
Reviewed-by: Muchun Song <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
include/linux/slub_def.h
mm/slub.c

index 33c5c0e3bd8d9780af0a921aba001ff37a6c126b..f9c68a9dac04293fcb077fe30c80514b0e517b7c 100644 (file)
@@ -105,7 +105,6 @@ struct kmem_cache {
        struct kmem_cache_order_objects oo;
 
        /* Allocation and freeing of slabs */
-       struct kmem_cache_order_objects max;
        struct kmem_cache_order_objects min;
        gfp_t allocflags;       /* gfp flags to use on each alloc */
        int refcount;           /* Refcount for slab cache destroy */
index 74d92aa4a3a28d744d3d5dfd4b30f5d632172207..547b5168c9382841b1a2c0352690986e732c798b 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -4165,8 +4165,6 @@ static int calculate_sizes(struct kmem_cache *s)
         */
        s->oo = oo_make(order, size);
        s->min = oo_make(get_order(size), size);
-       if (oo_objects(s->oo) > oo_objects(s->max))
-               s->max = s->oo;
 
        return !!oo_objects(s->oo);
 }
This page took 0.077709 seconds and 4 git commands to generate.