mm/rmap: introduce and use hugetlb_add_file_rmap()
[linux-2.6-microblaze.git] / mm / rmap.c
index 261e1af..a57ec92 100644 (file)
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1395,6 +1395,7 @@ void folio_add_file_rmap_range(struct folio *folio, struct page *page,
        unsigned int nr_pmdmapped = 0, first;
        int nr = 0;
 
+       VM_WARN_ON_FOLIO(folio_test_hugetlb(folio), folio);
        VM_WARN_ON_FOLIO(compound && !folio_test_pmd_mappable(folio), folio);
 
        /* Is page being mapped by PTE? Is this its first map to be added? */