From: Uladzislau Rezki <urezki@gmail.com>
To: Ye Liu <ye.liu@linux.dev>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Uladzislau Rezki <urezki@gmail.com>,
linux-mm@kvack.org, Ye Liu <liuye@kylinos.cn>
Subject: Re: [PATCH 3/8] mm/vmalloc: fix misleading pr_warn in alloc_vmap_area
Date: Sun, 6 Dec 2026 18:49:04 +0100 [thread overview]
Message-ID: <axWgEH0aaHB7qxZQ@milan> (raw)
In-Reply-To: <20261203-vmalloc_cleanup_1-v1-3-6ebde19040f4@linux.dev>
On Thu, Dec 03, 2026 at 09:22:14AM +0800, Ye Liu wrote:
> From: Ye Liu <liuye@kylinos.cn>
>
> The warning message referenced vmalloc_node_range but alloc_vmap_area
> is a generic allocator called from multiple paths, not just
> __vmalloc_node_range. Use __func__ and drop the inaccurate "Address
> range restricted" phrasing.
>
> Signed-off-by: Ye Liu <liuye@kylinos.cn>
> ---
> mm/vmalloc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mm/vmalloc.c b/mm/vmalloc.c
> index 1f6ef2530e9e..ed4c4f7054c3 100644
> --- a/mm/vmalloc.c
> +++ b/mm/vmalloc.c
> @@ -2211,8 +2211,8 @@ static struct vmap_area *alloc_vmap_area(unsigned long size,
> }
>
> if (!(gfp_mask & __GFP_NOWARN) && printk_ratelimit())
> - pr_warn("vmalloc_node_range for size %lu failed: Address range restricted to %#lx - %#lx\n",
> - size, vstart, vend);
> + pr_warn("%s: size %lu failed, range %#lx - %#lx\n",
> + __func__, size, vstart, vend);
>
> out_free_va:
> kmem_cache_free(vmap_area_cachep, va);
>
> --
> 2.25.1
>
This looks good to me. If you change the "Address range restricted to"
statement in order to make it more accurate, shall we update it with:
pr_warn("%s: size %lu failed, range: [%#lx, %#lx)\n",
__func__, size, vstart, vend);
then?
--
Uladzislau Rezki
next prev parent reply other threads:[~2026-12-06 17:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 1:22 [PATCH 0/8] mm/vmalloc: assorted cleanups and minor fixes Ye Liu
2026-12-03 1:22 ` [PATCH 1/8] mm/vmalloc: use ALIGN_DOWN for vmalloc end alignment Ye Liu
2026-12-03 5:29 ` Dev Jain
2026-12-06 15:28 ` Uladzislau Rezki
2026-12-03 1:22 ` [PATCH 2/8] mm/vmalloc: extract pcpu_release_va helper Ye Liu
2026-12-06 15:44 ` Uladzislau Rezki
2026-12-03 1:22 ` [PATCH 3/8] mm/vmalloc: fix misleading pr_warn in alloc_vmap_area Ye Liu
2026-12-06 17:49 ` Uladzislau Rezki [this message]
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=axWgEH0aaHB7qxZQ@milan \
--to=urezki@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=liuye@kylinos.cn \
--cc=ye.liu@linux.dev \
/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