mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 11:33:58 -04:00
mm: remove PageTransTail()
The last caller was removed in October. Also remove the FALSE definition of PageTransCompoundMap(); the normal definition was removed a few years ago. Link: https://lkml.kernel.org/r/20250109152245.1591914-1-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Acked-by: David Hildenbrand <david@redhat.com> Acked-by: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
a52dcec56c
commit
d670c8e530
@@ -894,21 +894,9 @@ static inline int PageTransCompound(const struct page *page)
|
||||
{
|
||||
return PageCompound(page);
|
||||
}
|
||||
|
||||
/*
|
||||
* PageTransTail returns true for both transparent huge pages
|
||||
* and hugetlbfs pages, so it should only be called when it's known
|
||||
* that hugetlbfs pages aren't involved.
|
||||
*/
|
||||
static inline int PageTransTail(const struct page *page)
|
||||
{
|
||||
return PageTail(page);
|
||||
}
|
||||
#else
|
||||
TESTPAGEFLAG_FALSE(TransHuge, transhuge)
|
||||
TESTPAGEFLAG_FALSE(TransCompound, transcompound)
|
||||
TESTPAGEFLAG_FALSE(TransCompoundMap, transcompoundmap)
|
||||
TESTPAGEFLAG_FALSE(TransTail, transtail)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_MEMORY_FAILURE) && defined(CONFIG_TRANSPARENT_HUGEPAGE)
|
||||
|
||||
Reference in New Issue
Block a user