summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2014-08-28 19:34:13 +0100
committerJiri Slaby <jslaby@suse.cz>2014-09-26 11:51:50 +0200
commit75858faa45de3bef7519b046f5453c2d7a3527c7 (patch)
treea2c26b510ada5422f118f9968d63dc2a1c66ace2 /usr
parent73210d0adac4c6f283eb825e85febdc12dbd3e36 (diff)
mm: fix bad rss-counter if remap_file_pages raced migration
commit 887843961c4b4681ee993c36d4997bf4b4aa8253 upstream. Fix some "Bad rss-counter state" reports on exit, arising from the interaction between page migration and remap_file_pages(): zap_pte() must count a migration entry when zapping it. And yes, it is possible (though very unusual) to find an anon page or swap entry in a VM_SHARED nonlinear mapping: coming from that horrid get_user_pages(write, force) case which COWs even in a shared mapping. Signed-off-by: Hugh Dickins <hughd@google.com> Tested-by: Sasha Levin sasha.levin@oracle.com> Tested-by: Dave Jones davej@redhat.com> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Mel Gorman <mgorman@suse.de> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions