Re: [PATCH 0/2] md: superblock page cleanups
From: yu kuai
Date: Sat Nov 28 2026 - 20:38:02 EST
在 2026/11/21 2:42, Tal Zussman 写道:
> read_rdev() clears PG_uptodate on a superblock page it has just
> allocated, which does nothing. Patch 1 removes the call, which is one of
> the last users of ClearPageUptodate(). Patch 2 frees the rdev superblock
> and bad block pages with __free_page() instead of put_page(), as md
> holds the only reference to them.
>
> These buffers don't need to be pages at all and could be plain kmalloc()
> allocations, but that is a larger change, so I left it out for now.
>
> No functional change intended.
>
> ---
> Tal Zussman (2):
> md: remove ClearPageUptodate() from read_rdev()
> md: free the superblock and bad block pages with __free_page()
>
> drivers/md/md.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
Applied
> ---
> base-commit: c526b7cd32f75fea6021ffdab287b81cf38ddeb7
> change-id: 20261119-md-sb-page-cleanup-e9dbb79b2cf9
>
> Best regards,
> --
> Tal Zussman <tz2294@xxxxxxxxxxxx>
--
Thanks,
Kuai