Re: [PATCH 06/15] md/raid1,raid10: use folio for sync path IO

Li Nan <[email protected]>
Newsgroups gmane.linux.raid,gmane.linux.kernel
Message-ID <[email protected]>

在 2025/12/17 20:00, [email protected] 写道:
> From: Li Nan <[email protected]>
> 
> 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 <[email protected]>
> ---
>   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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.