mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "msm: kgsl: Fix to record NR_KERNEL_MISC_RECLAIMABLE in page units"
This commit is contained in:
commit
f0e348558a
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <asm/cacheflush.h>
|
||||
|
|
@ -101,7 +101,7 @@ _kgsl_pool_add_page(struct kgsl_page_pool *pool, struct page *p)
|
|||
pool->page_count++;
|
||||
spin_unlock(&pool->list_lock);
|
||||
mod_node_page_state(page_pgdat(p), NR_KERNEL_MISC_RECLAIMABLE,
|
||||
(PAGE_SIZE << pool->pool_order));
|
||||
(1 << pool->pool_order));
|
||||
}
|
||||
|
||||
/* Returns a page from specified pool */
|
||||
|
|
@ -118,7 +118,7 @@ _kgsl_pool_get_page(struct kgsl_page_pool *pool)
|
|||
}
|
||||
spin_unlock(&pool->list_lock);
|
||||
mod_node_page_state(page_pgdat(p), NR_KERNEL_MISC_RECLAIMABLE,
|
||||
-(PAGE_SIZE << pool->pool_order));
|
||||
-(1 << pool->pool_order));
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue