Re: [PATCH v2 06/14] md: Clean up folio sync support related code

From: Li Nan

Date: Thu Feb 05 2026 - 02:27:41 EST




在 2026/2/5 0:52, Yu Kuai 写道:
Hi,

在 2026/1/28 15:57, linan666@xxxxxxxxxxxxxxx 写道:
From: Li Nan <linan122@xxxxxxxxxx>

1. Remove resync_get_all_folio() and invoke folio_get() directly instead.
2. Clean up redundant while(0) loop in md_bio_reset_resync_folio().
3. Clean up bio variable by directly referencing r10_bio->devs[j].bio
instead in r1buf_pool_alloc() and r10buf_pool_alloc().
4. Clean up RESYNC_PAGES.

Signed-off-by: Li Nan <linan122@xxxxxxxxxx>
Reviewed-by: Xiao Ni <xni@xxxxxxxxxx>
---
drivers/md/raid1-10.c | 22 ++++++----------------
drivers/md/raid1.c | 6 ++----
drivers/md/raid10.c | 6 ++----
3 files changed, 10 insertions(+), 24 deletions(-)

I think this patch can be merged into patch 5.


Thanks for your review.

Previously I modified them together, which made patch 5 difficult to review
as it is already large enough. I will merge them in the next version.

--
Thanks,
Nan