commit | e94350b881bda084a1a1738bf67385351d8e499a | [log] [tgz] |
---|---|---|
author | Minchan Kim <minchan@kernel.org> | Tue Oct 27 23:54:14 2015 +0900 |
committer | Minchan Kim <minchan@kernel.org> | Wed Oct 28 22:50:08 2015 +0900 |
tree | f02234cc31b8659fbce2a123266cc1b93c4723b3 | |
parent | cc33883a004328dadfa267edce5f9a799f5b0a78 [diff] |
mm: mark stable page dirty in KSM The MADV_FREE patchset changes page reclaim to simply free a clean anonymous page with no dirty ptes, instead of swapping it out; but KSM uses clean write-protected ptes to reference the stable ksm page. So be sure to mark that page dirty, so it's never mistakenly discarded. [hughd: adjusted comments] Acked-by: Hugh Dickins <hughd@google.com> Signed-off-by: Minchan Kim <minchan@kernel.org>