summaryrefslogtreecommitdiffstats
path: root/mm/khugepaged.c
diff options
context:
space:
mode:
authorKirill A. Shutemov2017-11-27 04:21:25 +0100
committerLinus Torvalds2017-11-27 21:26:29 +0100
commita8f97366452ed491d13cf1e44241bc0b5740b1f0 (patch)
tree088b53c38a80b46fb6d46c49dc521dfa54e3a87b /mm/khugepaged.c
parentLinux 4.15-rc1 (diff)
downloadkernel-qcow2-linux-a8f97366452ed491d13cf1e44241bc0b5740b1f0.tar.gz
kernel-qcow2-linux-a8f97366452ed491d13cf1e44241bc0b5740b1f0.tar.xz
kernel-qcow2-linux-a8f97366452ed491d13cf1e44241bc0b5740b1f0.zip
mm, thp: Do not make page table dirty unconditionally in touch_p[mu]d()
Currently, we unconditionally make page table dirty in touch_pmd(). It may result in false-positive can_follow_write_pmd(). We may avoid the situation, if we would only make the page table entry dirty if caller asks for write access -- FOLL_WRITE. The patch also changes touch_pud() in the same way. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/khugepaged.c')
0 files changed, 0 insertions, 0 deletions