diff options
-rw-r--r-- | mm/memory-failure.c | 2 | ||||
-rw-r--r-- | mm/rmap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 6a283cc9317c..1b43d0ffff65 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c | |||
@@ -386,7 +386,7 @@ static void collect_procs_anon(struct page *page, struct list_head *to_kill, | |||
386 | struct task_struct *tsk; | 386 | struct task_struct *tsk; |
387 | struct anon_vma *av; | 387 | struct anon_vma *av; |
388 | 388 | ||
389 | if (unlikely(split_huge_page(page))) | 389 | if (!PageHuge(page) && unlikely(split_huge_page(page))) |
390 | return; | 390 | return; |
391 | read_lock(&tasklist_lock); | 391 | read_lock(&tasklist_lock); |
392 | av = page_lock_anon_vma(page); | 392 | av = page_lock_anon_vma(page); |
@@ -1430,7 +1430,7 @@ int try_to_unmap(struct page *page, enum ttu_flags flags) | |||
1430 | int ret; | 1430 | int ret; |
1431 | 1431 | ||
1432 | BUG_ON(!PageLocked(page)); | 1432 | BUG_ON(!PageLocked(page)); |
1433 | BUG_ON(PageTransHuge(page)); | 1433 | VM_BUG_ON(!PageHuge(page) && PageTransHuge(page)); |
1434 | 1434 | ||
1435 | if (unlikely(PageKsm(page))) | 1435 | if (unlikely(PageKsm(page))) |
1436 | ret = try_to_unmap_ksm(page, flags); | 1436 | ret = try_to_unmap_ksm(page, flags); |