Re: [PATCH V2 1/2] mm/khugepaged: clean up refcount check using folio_expected_ref_count()
From: David Hildenbrand
Date: Sat May 24 2025 - 17:47:45 EST
On 23.05.25 11:14, Shivank Garg wrote:
Use folio_expected_ref_count() instead of open-coded logic in
is_refcount_suitable(). This avoids code duplication and improves
clarity.
Drop is_refcount_suitable() as it is no longer needed.
Suggested-by: David Hildenbrand <david@xxxxxxxxxx>
Signed-off-by: Shivank Garg <shivankg@xxxxxxx>
---
Likely we should revert the patches, so we can have the fix in first.
So in this patch here, we would only convert the remaining 2 instances.
Acked-by: David Hildenbrand <david@xxxxxxxxxx>
--
Cheers,
David / dhildenb