[PATCH 1/2] md: remove ClearPageUptodate() from read_rdev()

From: Tal Zussman

Date: Fri Nov 20 2026 - 13:42:26 EST


read_rdev() clears PG_uptodate on the superblock page it has just
allocated with alloc_page(), before reading the superblock into it. The
flag is never set on a newly allocated page, and nothing in md tests it.

Remove the call.

Signed-off-by: Tal Zussman <tz2294@xxxxxxxxxxxx>
---
drivers/md/md.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index c71c3b043496..c5a7f0697f7d 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -10953,7 +10953,6 @@ static int read_rdev(struct mddev *mddev, struct md_rdev *rdev)
rdev->sb_page = NULL;
err = alloc_disk_sb(rdev);
if (err == 0) {
- ClearPageUptodate(rdev->sb_page);
rdev->sb_loaded = 0;
err = super_types[mddev->major_version].
load_super(rdev, NULL, mddev->minor_version);

--
2.39.5