|
@@ -32,6 +32,9 @@ static void ion_page_pool_add(struct ion_page_pool *pool, struct page *page)
|
|
|
list_add_tail(&page->lru, &pool->low_items);
|
|
|
pool->low_count++;
|
|
|
}
|
|
|
+
|
|
|
+ mod_node_page_state(page_pgdat(page), NR_INDIRECTLY_RECLAIMABLE_BYTES,
|
|
|
+ (1 << (PAGE_SHIFT + pool->order)));
|
|
|
mutex_unlock(&pool->mutex);
|
|
|
}
|
|
|
|
|
@@ -50,6 +53,8 @@ static struct page *ion_page_pool_remove(struct ion_page_pool *pool, bool high)
|
|
|
}
|
|
|
|
|
|
list_del(&page->lru);
|
|
|
+ mod_node_page_state(page_pgdat(page), NR_INDIRECTLY_RECLAIMABLE_BYTES,
|
|
|
+ -(1 << (PAGE_SHIFT + pool->order)));
|
|
|
return page;
|
|
|
}
|
|
|
|