All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ye Liu <ye.liu@linux.dev>
To: Andrew Morton <akpm@linux-foundation.org>,
	 Uladzislau Rezki <urezki@gmail.com>
Cc: linux-mm@kvack.org, Ye Liu <ye.liu@linux.dev>,
	 Ye Liu <liuye@kylinos.cn>
Subject: [PATCH 0/8] mm/vmalloc: assorted cleanups and minor fixes
Date: Thu, 03 Dec 2026 09:22:11 +0800	[thread overview]
Message-ID: <20261203-vmalloc_cleanup_1-v1-0-6ebde19040f4@linux.dev> (raw)

This series collects a set of small cleanups and minor fixes to
mm/vmalloc.c, mostly around the vmap area pool management and the
free-space initialization paths:

  1. use ALIGN_DOWN() instead of masking with ~(align - 1)
  2. extract a pcpu_release_va() helper to avoid duplicated KASAN
     release code
  3. fix a misleading pr_warn() in alloc_vmap_area()
  4. simplify the is_vn_id_valid() predicate
  5. move the pool length update under pool_lock in decay_va_pool_node()
  6. report the node count when vmap_init_nodes() falls back to a
     single node
  7. drop the double negation in vmap_insert_free_area()
  8. compare addresses directly in vmap_init_free_space()

No functional changes intended.

Signed-off-by: Ye Liu <ye.liu@linux.dev>
---
Ye Liu (8):
      mm/vmalloc: use ALIGN_DOWN for vmalloc end alignment
      mm/vmalloc: extract pcpu_release_va helper
      mm/vmalloc: fix misleading pr_warn in alloc_vmap_area
      mm/vmalloc: simplify is_vn_id_valid predicate
      mm/vmalloc: move pool length update under pool_lock in decay_va_pool_node()
      mm/vmalloc: report node count when falling back to a single node
      mm/vmalloc: drop the double negation in vmap_insert_free_area()
      mm/vmalloc: compare addresses directly in vmap_init_free_space()

 mm/vmalloc.c | 84 +++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 43 insertions(+), 41 deletions(-)
---
base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
change-id: 20261202-vmalloc_cleanup_1-b9fcdf978658

Best regards,
-- 
Ye Liu <ye.liu@linux.dev>



             reply	other threads:[~2026-12-03  1:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  1:22 Ye Liu [this message]
2026-12-03  1:22 ` [PATCH 1/8] mm/vmalloc: use ALIGN_DOWN for vmalloc end alignment Ye Liu
2026-12-03  1:22 ` [PATCH 2/8] mm/vmalloc: extract pcpu_release_va helper Ye Liu
2026-12-03  1:22 ` [PATCH 3/8] mm/vmalloc: fix misleading pr_warn in alloc_vmap_area Ye Liu
2026-12-03  1:22 ` [PATCH 4/8] mm/vmalloc: simplify is_vn_id_valid predicate Ye Liu
2026-12-03  1:22 ` [PATCH 5/8] mm/vmalloc: move pool length update under pool_lock in decay_va_pool_node() Ye Liu
2026-12-03  1:22 ` [PATCH 6/8] mm/vmalloc: report node count when falling back to a single node Ye Liu
2026-12-03  1:22 ` [PATCH 7/8] mm/vmalloc: drop the double negation in vmap_insert_free_area() Ye Liu
2026-12-03  1:22 ` [PATCH 8/8] mm/vmalloc: compare addresses directly in vmap_init_free_space() Ye Liu

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=20261203-vmalloc_cleanup_1-v1-0-6ebde19040f4@linux.dev \
    --to=ye.liu@linux.dev \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    --cc=liuye@kylinos.cn \
    --cc=urezki@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.