summaryrefslogtreecommitdiff
path: root/mm/slub.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-04-29 12:05:45 +0300
committerVlastimil Babka <vbabka@suse.cz>2022-05-02 11:48:40 +0300
commit23587f7c5daa936524ede26201253a089666b5d9 (patch)
treebf3cc113e87ddc81feb22298e6021e8fab1687fc /mm/slub.c
parent33647783deb674b60bb492718cef102c3e9dce6b (diff)
downloadlinux-23587f7c5daa936524ede26201253a089666b5d9.tar.xz
mm/slub: remove unused kmem_cache_order_objects max
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 <linmiaohe@huawei.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Link: https://lore.kernel.org/r/20220429090545.33413-1-linmiaohe@huawei.com
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 74d92aa4a3a2..547b5168c938 100644
--- 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);
}