diff options
| author | Shivank Garg <[email protected]> | 2025-05-26 18:28:20 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-06-01 05:46:16 +0000 |
| commit | 0b43b8bc8ef88bb45b018b2d4853d38bfc5ce2a7 (patch) | |
| tree | 01489989a91dfc45118d7bb471f8fd2bda9b336c /mm/truncate.c | |
| parent | selftests/mm: fix test result reporting in gup_longterm (diff) | |
| download | kernel-0b43b8bc8ef88bb45b018b2d4853d38bfc5ce2a7.tar.gz kernel-0b43b8bc8ef88bb45b018b2d4853d38bfc5ce2a7.zip | |
mm/khugepaged: clean up refcount check using folio_expected_ref_count()
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.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Shivank Garg <[email protected]>
Suggested-by: David Hildenbrand <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Acked-by: Dev Jain <[email protected]>
Reviewed-by: Baolin Wang <[email protected]>
Cc: Bharata B Rao <[email protected]>
Cc: Fengwei Yin <[email protected]>
Cc: Liam Howlett <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: Mariano Pache <[email protected]>
Cc: Ryan Roberts <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions
