All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Rosen Penev <rosenp@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] lib/bch: use flexible array member for xi_tab
Date: Wed, 11 Nov 2026 15:50:14 -0800	[thread overview]
Message-ID: <20261111155014.7dea28cd8eb128c267566a61@linux-foundation.org> (raw)
In-Reply-To: <20261111023458.72092-1-rosenp@gmail.com>

On Tue, 10 Nov 2026 18:34:58 -0800 Rosen Penev <rosenp@gmail.com> wrote:

> Convert xi_tab in struct bch_control from a separately allocated
> pointer to a flexible array member trailing the struct. This co-locates
> the xi_tab data with the struct allocation, reducing the number of
> individual heap allocations and simplifying cleanup.
> 
> The xi_tab member is moved to the end of the struct and changed from
> 'unsigned int *' to 'unsigned int []'. The allocation in bch_init()
> switches from kzalloc_obj + bch_alloc to kzalloc_flex, and the
> corresponding kfree in bch_free() is removed.

Looks OK, thanks.

Seems the only users of this code are some MTD drivers.  So can you
please resend this and also cc the appropriate developers/lists?


      reply	other threads:[~2026-11-11 23:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11  2:34 [PATCH] lib/bch: use flexible array member for xi_tab Rosen Penev
2026-11-11 23:50 ` Andrew Morton [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=20261111155014.7dea28cd8eb128c267566a61@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rosenp@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.