mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] md: superblock page cleanups
@ 2026-11-20 18:42 Tal Zussman
  2026-11-20 18:42 ` [PATCH 1/2] md: remove ClearPageUptodate() from read_rdev() Tal Zussman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tal Zussman @ 2026-11-20 18:42 UTC (permalink / raw)
  To: Song Liu, Yu Kuai, Li Nan, Xiao Ni; +Cc: linux-raid, linux-kernel, 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(-)
---
base-commit: c526b7cd32f75fea6021ffdab287b81cf38ddeb7
change-id: 20261119-md-sb-page-cleanup-e9dbb79b2cf9

Best regards,
--  
Tal Zussman <tz2294@columbia.edu>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-29  1:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 18:42 [PATCH 0/2] md: superblock page cleanups Tal Zussman
2026-11-20 18:42 ` [PATCH 1/2] md: remove ClearPageUptodate() from read_rdev() Tal Zussman
2026-11-20 18:42 ` [PATCH 2/2] md: free the superblock and bad block pages with __free_page() Tal Zussman
2026-11-29  1:37 ` [PATCH 0/2] md: superblock page cleanups yu kuai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®