]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blobdiff - Documentation/vm/transhuge.txt
thp: change split_huge_page_pmd() interface
[can-eth-gw-linux.git] / Documentation / vm / transhuge.txt
index f734bb2a78dc797aa62a2d2b0e1e7cc3390fef87..8f5b41db314cfe0f9c6e1e978cdfd315ddf26019 100644 (file)
@@ -276,7 +276,7 @@ unaffected. libhugetlbfs will also work fine as usual.
 == Graceful fallback ==
 
 Code walking pagetables but unware about huge pmds can simply call
-split_huge_page_pmd(mm, pmd) where the pmd is the one returned by
+split_huge_page_pmd(vma, addr, pmd) where the pmd is the one returned by
 pmd_offset. It's trivial to make the code transparent hugepage aware
 by just grepping for "pmd_offset" and adding split_huge_page_pmd where
 missing after pmd_offset returns the pmd. Thanks to the graceful
@@ -299,7 +299,7 @@ diff --git a/mm/mremap.c b/mm/mremap.c
                return NULL;
 
        pmd = pmd_offset(pud, addr);
-+      split_huge_page_pmd(mm, pmd);
++      split_huge_page_pmd(vma, addr, pmd);
        if (pmd_none_or_clear_bad(pmd))
                return NULL;