aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-11-16 21:17:14 -0500
committerMatthew Wilcox (Oracle) <willy@infradead.org>2021-11-17 10:36:35 -0500
commit9c3252152e8a6401c2b9e32490a5a16ec4472778 (patch)
tree3310b7b6b0a7baabdcbd155bf3543648e0130b8a /include/linux
parentAdd linux/cacheflush.h (diff)
downloadlinux-dev-9c3252152e8a6401c2b9e32490a5a16ec4472778.tar.xz
linux-dev-9c3252152e8a6401c2b9e32490a5a16ec4472778.zip
mm: Rename folio_test_multi to folio_test_large
This is a better name. Also add kernel-doc. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/page-flags.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 52ec4b5e5615..05510118fbb8 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -692,7 +692,13 @@ static inline bool folio_test_single(struct folio *folio)
return !folio_test_head(folio);
}
-static inline bool folio_test_multi(struct folio *folio)
+/**
+ * folio_test_large() - Does this folio contain more than one page?
+ * @folio: The folio to test.
+ *
+ * Return: True if the folio is larger than one page.
+ */
+static inline bool folio_test_large(struct folio *folio)
{
return folio_test_head(folio);
}