mm: Rename folio_test_multi to folio_test_large
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 17 Nov 2021 02:17:14 +0000 (21:17 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 17 Nov 2021 15:36:35 +0000 (10:36 -0500)
This is a better name.  Also add kernel-doc.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/page-flags.h
mm/memcontrol.c

index 52ec4b5..0551011 100644 (file)
@@ -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);
 }
index 781605e..6863a83 100644 (file)
@@ -5558,7 +5558,7 @@ static int mem_cgroup_move_account(struct page *page,
 
        VM_BUG_ON(from == to);
        VM_BUG_ON_FOLIO(folio_test_lru(folio), folio);
-       VM_BUG_ON(compound && !folio_test_multi(folio));
+       VM_BUG_ON(compound && !folio_test_large(folio));
 
        /*
         * Prevent mem_cgroup_migrate() from looking at