summaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-01-11 15:29:13 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-02-03 07:33:00 +0100
commitf158ed6195ef949060811fd85086928470651944 (patch)
tree46ce5a8ac80dc4c81a5dfad2ae06a600c53b5be0 /mm/rmap.c
parentmm/huge_memory: convert get_deferred_split_queue() to take a folio (diff)
downloadlinux-f158ed6195ef949060811fd85086928470651944.tar.xz
linux-f158ed6195ef949060811fd85086928470651944.zip
mm: convert deferred_split_huge_page() to deferred_split_folio()
Now that both callers use a folio, pass the folio in and save a call to compound_head(). Link: https://lkml.kernel.org/r/20230111142915.1001531-28-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index 0020474f46c1..a079d9964b9c 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1427,7 +1427,7 @@ void page_remove_rmap(struct page *page, struct vm_area_struct *vma,
*/
if (folio_test_pmd_mappable(folio) && folio_test_anon(folio))
if (!compound || nr < nr_pmdmapped)
- deferred_split_huge_page(&folio->page);
+ deferred_split_folio(folio);
}
/*