diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2023-08-16 16:11:59 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-08-21 14:28:45 -0700 |
| commit | 6199277baf73a4877b42991b97c40e173e530756 (patch) | |
| tree | 8bedda28f27b8a5994adf29356bf9a8f283bfbc9 /include/linux | |
| parent | ebc1baf5c9b46c2240c580a2fd992b2e48606dfa (diff) | |
mm: remove folio_test_transhuge()
This function is misleading; people think it means "Is this a THP", when
all it actually does is check whether this is a large folio. Remove it;
the one remaining user should have been checking to see whether the folio
is PMD sized or not.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Sidhartha Kumar <[email protected]>
Cc: Yanteng Si <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/page-flags.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 638b0a96b4c5..5c02720c53a5 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -853,11 +853,6 @@ static inline int PageTransHuge(struct page *page) return PageHead(page); } -static inline bool folio_test_transhuge(struct folio *folio) -{ - return folio_test_head(folio); -} - /* * PageTransCompound returns true for both transparent huge pages * and hugetlbfs pages, so it should only be called when it's known |