|
@@ -5658,7 +5658,8 @@ static void uncharge_batch(const struct uncharge_gather *ug)
|
|
static void uncharge_page(struct page *page, struct uncharge_gather *ug)
|
|
static void uncharge_page(struct page *page, struct uncharge_gather *ug)
|
|
{
|
|
{
|
|
VM_BUG_ON_PAGE(PageLRU(page), page);
|
|
VM_BUG_ON_PAGE(PageLRU(page), page);
|
|
- VM_BUG_ON_PAGE(!PageHWPoison(page) && page_count(page), page);
|
|
|
|
|
|
+ VM_BUG_ON_PAGE(page_count(page) && !is_zone_device_page(page) &&
|
|
|
|
+ !PageHWPoison(page) , page);
|
|
|
|
|
|
if (!page->mem_cgroup)
|
|
if (!page->mem_cgroup)
|
|
return;
|
|
return;
|