mm: Remove folio_test_single

There's no need for this predicate; callers can just use
!folio_test_large().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
This commit is contained in:
Matthew Wilcox (Oracle)
2021-11-16 21:18:52 -05:00
parent 9c3252152e
commit a1efe484dd
2 changed files with 1 additions and 7 deletions

View File

@@ -686,12 +686,6 @@ static inline bool test_set_page_writeback(struct page *page)
__PAGEFLAG(Head, head, PF_ANY) CLEARPAGEFLAG(Head, head, PF_ANY)
/* Whether there are one or multiple pages in a folio */
static inline bool folio_test_single(struct folio *folio)
{
return !folio_test_head(folio);
}
/**
* folio_test_large() - Does this folio contain more than one page?
* @folio: The folio to test.