Skip to contentSkip to conversation

mm/huge_memory.c: fix comment in __split_huge_pmd_locked

PATCH In review [email protected] 1 participant 1 message Feb 1, 2018

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 56/119 mm/huge_memory.c: fix comment in __split_huge_pmd_locked

From: Yisheng Xie <[email protected]>
Subject: mm/huge_memory.c: fix comment in __split_huge_pmd_locked

pmd_trans_splitting() was removed after THP refcounting redesign, therefore related comment should be updated.

---

 mm/huge_memory.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-huge_memory-fix-comment-in-__split_huge_pmd_locked +3 -4
diff -puN mm/huge_memory.c~mm-huge_memory-fix-comment-in-__split_huge_pmd_locked mm/huge_memory.c
@@ -2205,10 +2205,9 @@ static void __split_huge_pmd_locked(stru
 	 * for the same virtual address to be loaded simultaneously. So instead
 	 * of doing "pmd_populate(); flush_pmd_tlb_range();" we first mark the
 	 * current pmd notpresent (atomically because here the pmd_trans_huge
-	 * and pmd_trans_splitting must remain set at all times on the pmd
-	 * until the split is complete for this pmd), then we flush the SMP TLB
-	 * and finally we write the non-huge version of the pmd entry with
-	 * pmd_populate.
+	 * must remain set at all times on the pmd until the split is complete
+	 * for this pmd), then we flush the SMP TLB and finally we write the
+	 * non-huge version of the pmd entry with pmd_populate.
 	 */
 	pmdp_invalidate(vma, haddr, pmd);
 	pmd_populate(mm, pmd, pgtable);

_