Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sang-Heon Jeon <ekffu200098@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	Harry Yoo <harry@kernel.org>, Vlastimil Babka <vbabka@kernel.org>
Cc: Christoph Lameter <cl@gentwo.org>,
	Danilo Krummrich <dakr@kernel.org>,
	David Rientjes <rientjes@google.com>, Hao Li <hao.li@linux.dev>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Michal Hocko <mhocko@suse.com>,
	Roman Gushchin <roman.gushchin@linux.dev>
Subject: [PATCH 0/3] mm/slub: two small cleanups and a small fix
Date: Wed,  2 Dec 2026 01:52:48 +0900	[thread overview]
Message-ID: <20261201165256.1286791-1-ekffu200098@gmail.com> (raw)

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



             reply	other threads:[~2026-12-01 16:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 16:52 Sang-Heon Jeon [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201165256.1286791-1-ekffu200098@gmail.com \
    --to=ekffu200098@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=cl@gentwo.org \
    --cc=dakr@kernel.org \
    --cc=hao.li@linux.dev \
    --cc=harry@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=rientjes@google.com \
    --cc=roman.gushchin@linux.dev \
    --cc=vbabka@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox