summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-11-17 03:18:52 +0100
committerMatthew Wilcox (Oracle) <willy@infradead.org>2021-11-17 16:36:35 +0100
commita1efe484dd8c04c4c2d4eb1ee6b04d01cfc07ccc (patch)
treee56a0a53bab6ef9219b248c9d25425dcffdd5533 /include
parentmm: Rename folio_test_multi to folio_test_large (diff)
downloadlinux-a1efe484dd8c04c4c2d4eb1ee6b04d01cfc07ccc.tar.xz
linux-a1efe484dd8c04c4c2d4eb1ee6b04d01cfc07ccc.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/page-flags.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 05510118fbb8..b5f14d581113 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -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.