[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7f022f36-f543-a767-36e0-18df6d7ade1a@huaweicloud.com>
Date: Sat, 27 Dec 2025 09:34:29 +0800
From: Li Nan <linan666@...weicloud.com>
To: linan666@...weicloud.com, song@...nel.org, yukuai@...as.com
Cc: linux-raid@...r.kernel.org, linux-kernel@...r.kernel.org, xni@...hat.com,
yangerkun@...wei.com, yi.zhang@...wei.com
Subject: Re: [PATCH 06/15] md/raid1,raid10: use folio for sync path IO
在 2025/12/17 20:00, linan666@...weicloud.com 写道:
> From: Li Nan <linan122@...wei.com>
>
> Convert all IO on the sync path to use folios. Rename page-related
> identifiers to match folio.
>
> Retain some now-unnecessary while and for loops to minimize code
> changes, clean them up in a subsequent patch.
>
> Signed-off-by: Li Nan <linan122@...wei.com>
> ---
> drivers/md/md.c | 2 +-
> drivers/md/raid1-10.c | 60 ++++--------
> drivers/md/raid1.c | 155 ++++++++++++++-----------------
> drivers/md/raid10.c | 207 +++++++++++++++++++-----------------------
> 4 files changed, 179 insertions(+), 245 deletions(-)
>
This patch misses modifications to functions raid1_alloc_init_r1buf() and
raid10_alloc_init_r10buf(). They will be included with other suggestions in v2.
static struct r1bio *raid1_alloc_init_r1buf(struct r1conf *conf)
{
struct r1bio *r1bio = mempool_alloc(&conf->r1buf_pool, GFP_NOIO);
- struct resync_pages *rps;
+ struct resync_folio *rfs;
struct bio *bio;
int i;
static struct r10bio *raid10_alloc_init_r10buf(struct r10conf *conf)
{
struct r10bio *r10bio = mempool_alloc(&conf->r10buf_pool, GFP_NOIO);
- struct rsync_pages *rp;
+ struct resync_folio *rf;
struct bio *bio;
int nalloc;
int i;
--
Thanks,
Nan
Powered by blists - more mailing lists