commit | c4c6234ae4f384ce00819c41b48ca8f6f1fa3ba8 | [log] [tgz] |
---|---|---|
author | Kirill A. Shutemov <[email protected]> | Mon Nov 27 03:21:25 2017 |
committer | ChromeOS Commit Bot <[email protected]> | Fri Dec 08 01:37:32 2017 |
tree | 9360364ae98ec0f984c09b044f85cb53a09d7161 | |
parent | 7399bee2ff8d8ba29aa1ba729dab66371c61bb1d [diff] |
UPSTREAM: mm, thp: Do not make page table dirty unconditionally in touch_p[mu]d() commit a8f97366452ed491d13cf1e44241bc0b5740b1f0 upstream. 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 <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> [Salvatore Bonaccorso: backport for 3.16: - Adjust context - Drop specific part for PUD-sized transparent hugepages. Support for PUD-sized transparent hugepages was added in v4.11-rc1 ] Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> (cherry picked from commit 2b7ef6bdd28610f2907cd766362cf95d0d023801) Signed-off-by: Daniel Wang <[email protected]> BUG=b:70219322 TEST=trybot Change-Id: I45832bb287b4712634fc2972cf7b4a086465a867 Reviewed-on: https://chromium-review.googlesource.com/810025 Reviewed-by: Guenter Roeck <[email protected]> Commit-Queue: Saied Kazemi <[email protected]> Tested-by: Saied Kazemi <[email protected]>