Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1249207 > unrolled thread

[PATCH mmotm] mm: dont split thp page when syscall is called fix 4

Started byHugh Dickins <hughd@google.com>
First post2015-10-17 00:50 +0200
Last post2015-10-17 00:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH mmotm] mm: dont split thp page when syscall is called fix 4 Hugh Dickins <hughd@google.com> - 2015-10-17 00:50 +0200

#1249207 — [PATCH mmotm] mm: dont split thp page when syscall is called fix 4

FromHugh Dickins <hughd@google.com>
Date2015-10-17 00:50 +0200
Subject[PATCH mmotm] mm: dont split thp page when syscall is called fix 4
Message-ID<qklZ1-3t5-29@gated-at.bofh.it>
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>

--- mmotm/mm/madvise.c	2015-10-15 15:26:59.839572171 -0700
+++ linux/mm/madvise.c	2015-10-16 11:59:10.144527813 -0700
@@ -283,7 +283,7 @@ static int madvise_free_pte_range(pmd_t
 	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 */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web