[PATCHv2 0/2] mtd: concat: use flex array

Rosen Penev posted 2 patches 1 month ago
drivers/mtd/mtd_virt_concat.c | 19 +++----------------
drivers/mtd/mtdconcat.c       |  5 +----
include/linux/mtd/concat.h    |  2 +-
3 files changed, 5 insertions(+), 21 deletions(-)
[PATCHv2 0/2] mtd: concat: use flex array
Posted by Rosen Penev 1 month ago
Simplifies allocation. There may or may not be missing frees here. One
allocation is simpler to reason about.

v2: fix mistake in counted_by in first commit directly.

Rosen Penev (2):
  mtd: virt_concat: use single allocation for node
  mtd: concat: replace alloc + calloc with 1 alloc

 drivers/mtd/mtd_virt_concat.c | 19 +++----------------
 drivers/mtd/mtdconcat.c       |  5 +----
 include/linux/mtd/concat.h    |  2 +-
 3 files changed, 5 insertions(+), 21 deletions(-)

--
2.53.0
Re: [PATCHv2 0/2] mtd: concat: use flex array
Posted by Miquel Raynal 3 weeks, 4 days ago
On Thu, 05 Mar 2026 14:44:08 -0800, Rosen Penev wrote:
> Simplifies allocation. There may or may not be missing frees here. One
> allocation is simpler to reason about.
> 
> v2: fix mistake in counted_by in first commit directly.
> 
> Rosen Penev (2):
>   mtd: virt_concat: use single allocation for node
>   mtd: concat: replace alloc + calloc with 1 alloc
> 
> [...]

Applied to mtd/next, thanks!

[1/2] mtd: virt_concat: use single allocation for node
      commit: c685e6e8d88d544e8c4429b06c3e6795cbba32dd
[2/2] mtd: concat: replace alloc + calloc with 1 alloc
      commit: e19eaffc5213fdd6179e849d3032929fae0d8c2c

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl