[PATCH 6/8] mm/swap: remove unused folio_to_swp_tb()

From: Shivank Garg

Date: Mon Oct 26 2026 - 06:38:34 EST


Its last users were removed in commit 0d6af9bcf383 ("mm, swap: use the
swap table to track the swap count").

Signed-off-by: Shivank Garg <shivankg@xxxxxxx>
---
mm/swap_table.h | 5 -----
1 file changed, 5 deletions(-)

diff --git a/mm/swap_table.h b/mm/swap_table.h
index e6613e62f8d0..dae7dcca3196 100644
--- a/mm/swap_table.h
+++ b/mm/swap_table.h
@@ -126,11 +126,6 @@ static inline unsigned long pfn_to_swp_tb(unsigned long pfn, unsigned char flags
return swp_tb | __flags_to_swp_tb(flags);
}

-static inline unsigned long folio_to_swp_tb(struct folio *folio, unsigned char flags)
-{
- return pfn_to_swp_tb(folio_pfn(folio), flags);
-}
-
static inline unsigned long shadow_to_swp_tb(void *shadow, unsigned char flags)
{
BUILD_BUG_ON((BITS_PER_XA_VALUE + 1) !=

--
2.53.0