]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mm, thp: Do not make pmd/pud dirty without a reason"
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 29 Nov 2017 17:01:01 +0000 (09:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 29 Nov 2017 17:01:01 +0000 (09:01 -0800)
commite8e3d4321915adc86fc4630a43bd7cc3032cd71f
tree7d3b834a71f6fbaec70bb4a5700424be15e9e1d3
parent687eda394285d8d59d2ed149716f8c02d25099fc
Revert "mm, thp: Do not make pmd/pud dirty without a reason"

This reverts commit 014220bac999d8757f02885d0368c2ec392a71ea.

It was a nice cleanup in theory, but as Nicolai Stange points out, we do
need to make the page dirty for the copy-on-write case even when we
didn't end up making it writable, since the dirty bit is what we use to
check that we've gone through a COW cycle.

Reported-by: Michal Hocko <mhocko@kernel.org>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c
mm/internal.h
mm/khugepaged.c
mm/memory.c
mm/migrate.c