summaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-11-16 21:18:52 -0500
committerMatthew Wilcox (Oracle) <willy@infradead.org>2021-11-17 10:36:35 -0500
commita1efe484dd8c04c4c2d4eb1ee6b04d01cfc07ccc (patch)
treee56a0a53bab6ef9219b248c9d25425dcffdd5533 /mm/util.c
parent9c3252152e8a6401c2b9e32490a5a16ec4472778 (diff)
downloadlinux-a1efe484dd8c04c4c2d4eb1ee6b04d01cfc07ccc.tar.gz
linux-a1efe484dd8c04c4c2d4eb1ee6b04d01cfc07ccc.tar.bz2
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 'mm/util.c')
-rw-r--r--mm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/util.c b/mm/util.c
index e58151a61255..741ba32a43ac 100644
--- a/mm/util.c
+++ b/mm/util.c
@@ -670,7 +670,7 @@ bool folio_mapped(struct folio *folio)
{
long i, nr;
- if (folio_test_single(folio))
+ if (!folio_test_large(folio))
return atomic_read(&folio->_mapcount) >= 0;
if (atomic_read(folio_mapcount_ptr(folio)) >= 0)
return true;