summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-11-17 05:17:14 +0300
committerMatthew Wilcox (Oracle) <willy@infradead.org>2021-11-17 18:36:35 +0300
commit9c3252152e8a6401c2b9e32490a5a16ec4472778 (patch)
tree3310b7b6b0a7baabdcbd155bf3543648e0130b8a /include
parent522a0032af005502507f5f81ae64fdcc82b5d068 (diff)
downloadlinux-9c3252152e8a6401c2b9e32490a5a16ec4472778.tar.xz
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')
-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);
}