mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "ion: Fix to record NR_KERNEL_MISC_RECLAIMABLE in page units"
This commit is contained in:
commit
c81d459676
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ static void ion_page_pool_add(struct ion_page_pool *pool, struct page *page)
|
|||
|
||||
atomic_inc(&pool->count);
|
||||
mod_node_page_state(page_pgdat(page), NR_KERNEL_MISC_RECLAIMABLE,
|
||||
(1 << (PAGE_SHIFT + pool->order)));
|
||||
(1 << pool->order));
|
||||
mutex_unlock(&pool->mutex);
|
||||
}
|
||||
|
||||
|
|
@ -119,7 +119,7 @@ static struct page *ion_page_pool_remove(struct ion_page_pool *pool, bool high)
|
|||
atomic_dec(&pool->count);
|
||||
list_del(&page->lru);
|
||||
mod_node_page_state(page_pgdat(page), NR_KERNEL_MISC_RECLAIMABLE,
|
||||
-(1 << (PAGE_SHIFT + pool->order)));
|
||||
-(1 << pool->order));
|
||||
return page;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue