Re: [RFC] mm: use folio_expected_ref_count() helper for reference counting

From: Matthew Wilcox
Date: Mon Jun 09 2025 - 15:21:54 EST


On Mon, Jun 09, 2025 at 05:08:07PM +0000, Shivank Garg wrote:
> Replace open-coded folio reference count calculations with the
> folio_expected_ref_count() helper to improve code maintainability
> and reduce duplication.

If it needs this much additional commentary, perhaps it's not actually
clearer?