]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm: dont split thp page when syscall is called fix 4
authorHugh Dickins <hughd@google.com>
Wed, 21 Oct 2015 22:03:47 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:47 +0000 (09:03 +1100)
Compiler gives helpful warnings that madvise_free_pte_range()
has the args to split_huge_pmd() the wrong way round.

Signed-off-by: Hugh Dickins <hughd@google.com>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/madvise.c

index 77f4611c98a8446d31e83bff22d7512970e638b7..f68b1130f3e32d569ac7338670f0f907ed0b69c1 100644 (file)
@@ -275,7 +275,7 @@ static int madvise_free_pte_range(pmd_t *pmd, unsigned long addr,
        next = pmd_addr_end(addr, end);
        if (pmd_trans_huge(*pmd)) {
                if (next - addr != HPAGE_PMD_SIZE)
-                       split_huge_pmd(vma, addr, pmd);
+                       split_huge_pmd(vma, pmd, addr);
                else if (!madvise_free_huge_pmd(tlb, vma, pmd, addr))
                        goto next;
                /* fall through */