linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Alice Ryhl <aliceryhl@google.com>
To: Danilo Krummrich <dakr@kernel.org>
Cc: Uladzislau Rezki <urezki@gmail.com>,
	Shivam Kalra <shivamkalra98@zohomail.in>,
	linux-mm@kvack.org,  akpm@linux-foundation.org
Subject: Re: [RFC] mm/vmalloc: vrealloc() shrink TODO - seeking direction before implementing
Date: Fri, 20 Feb 2026 08:01:56 +0000	[thread overview]
Message-ID: <aZgU9Gup2_w58kJq@google.com> (raw)
In-Reply-To: <DGJ3LPUDBDTK.1TK1DXXFNXYPN@kernel.org>

On Thu, Feb 19, 2026 at 06:01:29PM +0100, Danilo Krummrich wrote:
> (Cc: Alice)
> 
> On Thu Feb 19, 2026 at 5:57 PM CET, Uladzislau Rezki wrote:
> > I think we have 0 users of vrealloc(). It was added because of Rust folk
> > wanted this.
> 
> We just gained a user with the Rust binder driver.

Yeah, if I have a long-lived resizable array (allocated with kvmalloc)
then I'd like to be able to shrink it if the number of elements decrease
again, to prevent unnecessary indefinite memory usage.

Alice


      reply	other threads:[~2026-02-20  8:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-18 23:06 Shivam Kalra
2026-02-19 16:57 ` Uladzislau Rezki
2026-02-19 17:01   ` Danilo Krummrich
2026-02-20  8:01     ` Alice Ryhl [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=aZgU9Gup2_w58kJq@google.com \
    --to=aliceryhl@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=dakr@kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=shivamkalra98@zohomail.in \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox