aboutsummaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorLuden <luden@ghostmail.com>2016-04-07 13:20:23 +0200
committerZiyan <jaraidaniel@gmail.com>2016-05-01 23:35:47 +0200
commit980a74e2c46a5f8b8ae8ef4e73dbcc4bf26443b9 (patch)
treec6b2cec1fc791963579ac1becb119d2139e478c7 /mm/migrate.c
parenta62e05e883fbbb201f6f89453849452c32d79429 (diff)
downloadkernel_samsung_tuna-980a74e2c46a5f8b8ae8ef4e73dbcc4bf26443b9.tar.gz
kernel_samsung_tuna-980a74e2c46a5f8b8ae8ef4e73dbcc4bf26443b9.tar.bz2
kernel_samsung_tuna-980a74e2c46a5f8b8ae8ef4e73dbcc4bf26443b9.zip
CMA fixes for kernel 3.0
Diffstat (limited to 'mm/migrate.c')
-rw-r--r--mm/migrate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index 3e315a7e4c8..76abb9ad067 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -770,7 +770,7 @@ static int __unmap_and_move(struct page *page, struct page *newpage,
* File Caches may use write_page() or lock_page() in migration, then,
* just care Anon page here.
*/
- if (PageAnon(page)) {
+ if (PageAnon(page) && !PageKsm(page)) {
/*
* Only page_lock_anon_vma() understands the subtleties of
* getting a hold on an anon_vma from outside one of its mms.