diff options
Diffstat (limited to 'mm/rmap.c')
-rw-r--r-- | mm/rmap.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1249,12 +1249,14 @@ int try_to_unmap_one(struct page *page, struct vm_area_struct *vma, | |||
1249 | update_hiwater_rss(mm); | 1249 | update_hiwater_rss(mm); |
1250 | 1250 | ||
1251 | if (PageHWPoison(page) && !(flags & TTU_IGNORE_HWPOISON)) { | 1251 | if (PageHWPoison(page) && !(flags & TTU_IGNORE_HWPOISON)) { |
1252 | if (PageAnon(page)) | 1252 | if (!PageHuge(page)) { |
1253 | dec_mm_counter(mm, MM_ANONPAGES); | 1253 | if (PageAnon(page)) |
1254 | else | 1254 | dec_mm_counter(mm, MM_ANONPAGES); |
1255 | dec_mm_counter(mm, MM_FILEPAGES); | 1255 | else |
1256 | dec_mm_counter(mm, MM_FILEPAGES); | ||
1257 | } | ||
1256 | set_pte_at(mm, address, pte, | 1258 | set_pte_at(mm, address, pte, |
1257 | swp_entry_to_pte(make_hwpoison_entry(page))); | 1259 | swp_entry_to_pte(make_hwpoison_entry(page))); |
1258 | } else if (PageAnon(page)) { | 1260 | } else if (PageAnon(page)) { |
1259 | swp_entry_t entry = { .val = page_private(page) }; | 1261 | swp_entry_t entry = { .val = page_private(page) }; |
1260 | 1262 | ||