[PATCH 0/3] mm/slub: two small cleanups and a small fix
From: Sang-Heon Jeon
Date: Tue Dec 01 2026 - 11:53:17 EST
Hello,
While reading the slab code, I found two small cleanups and a small fix.
Patch 1 removes the always-true check in calculate_sizes().
Patch 2 uses kmem_cache_alloc() in bootstrap() instead of
kmem_cache_zalloc().
Patch 3 copies only the requested size in kvrealloc() instead of
ksize(p) bytes.
These are *really* not urgent, so it is totally okay to respond after
the firefighting is over.
Sang-Heon Jeon (3):
mm/slub: remove always-true check in calculate_sizes()
mm/slub: use kmem_cache_alloc() in bootstrap()
mm/slub: copy only the requested size in kvrealloc()
mm/slub.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
base-commit: 0b0985aeb9979c5fa5c3b872cecdf97ed4ed2b3e
--
2.53.0