Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] mm/slub: two small cleanups and a small fix
@ 2026-12-01 16:52 Sang-Heon Jeon
  2026-12-01 16:52 ` [PATCH 1/3] mm/slub: remove always-true check in calculate_sizes() Sang-Heon Jeon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sang-Heon Jeon @ 2026-12-01 16:52 UTC (permalink / raw)
  To: Andrew Morton, Harry Yoo, Vlastimil Babka
  Cc: Christoph Lameter, Danilo Krummrich, David Rientjes, Hao Li,
	linux-kernel, linux-mm, Michal Hocko, Roman Gushchin

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-01 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 16:52 [PATCH 0/3] mm/slub: two small cleanups and a small fix Sang-Heon Jeon
2026-12-01 16:52 ` [PATCH 1/3] mm/slub: remove always-true check in calculate_sizes() Sang-Heon Jeon
2026-12-01 16:52 ` [PATCH 2/3] mm/slub: use kmem_cache_alloc() in bootstrap() Sang-Heon Jeon
2026-12-01 16:52 ` [PATCH 3/3] mm/slub: copy only the requested size in kvrealloc() Sang-Heon Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox