Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: hu.shengming@zte.com.cn, akpm@linux-foundation.org, urezki@gmail.com
Cc: linux-mm@kvack.org, baoquan.he@linux.dev, zhang.run@zte.com.cn
Subject: Re: [PATCH] mm/vmalloc: skip clearing page array in vfree()
Date: Fri, 04 Dec 2026 08:55:29 +0000	[thread overview]
Message-ID: <sashiko-outbox-249443@kernel.org> (raw)
In-Reply-To: <20261203165513646NPjqNhu4nc7m3b7zg9wRc@zte.com.cn>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] mm/vmalloc: non-canonical Link URL and transient note in commit
  message
--

commit c4fd1bc38db7b1ac4f4243db8fcb4a0dc697b4d8
Author: Shengming Hu <hu.shengming@zte.com.cn>

> mm/vmalloc: skip clearing page array in vfree()
>
> vm_area_free_pages() clears freed entries in vm->pages[].
> This is needed by vrealloc() shrink, which retains the array,
> but not by vfree(), which immediately releases it with kvfree().
>
> Add a clear_pages parameter to skip clearing when the page
> array will be freed. Pass false from vfree() and true
> from vrealloc() shrink.
>
> On a 64-bit system with 4 KiB pages, this avoids 2 MiB of
> unnecessary writes when freeing a 1 GiB vmalloc allocation.
>
> Note that Baoquan He's ongoing VM_SPARSE series adds new
> callers of this helper. These callers should pass true
> to preserve the existing clearing behavior.
>
> Link: https://lore-kernel.gnuweeb.org/linux-mm/20261129150755.191662-1-baoquan.he@linux.dev/
>
> Signed-off-by: Shengming Hu <hu.shengming@zte.com.cn>

[Severity: Low]
Should the note about the ongoing VM_SPARSE series and its Link trailer
be moved below the --- separator?  Temporary merge-coordination notes
about an unmerged series do not belong in the permanent changelog.

Also, if the Link trailer is kept, it should use the canonical
lore.kernel.org URL rather than the lore-kernel.gnuweeb.org mirror to
avoid link rot in git history.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203165513646NPjqNhu4nc7m3b7zg9wRc@zte.com.cn?part=1


      parent reply	other threads:[~2026-12-04  8:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  8:55 [PATCH] mm/vmalloc: skip clearing page array in vfree() hu.shengming
2026-12-03 10:26 ` Dev Jain
2026-12-03 13:05   ` hu.shengming
2026-12-03 14:37 ` Baoquan He
2026-12-03 15:37   ` hu.shengming
2026-12-03 16:32     ` Baoquan He
2026-12-04  8:55 ` sashiko-bot [this message]

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=sashiko-outbox-249443@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=baoquan.he@linux.dev \
    --cc=hu.shengming@zte.com.cn \
    --cc=linux-mm@kvack.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=urezki@gmail.com \
    --cc=zhang.run@zte.com.cn \
    /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