Merge "msm: kgsl: Fix to record NR_KERNEL_MISC_RECLAIMABLE in page units"

This commit is contained in:
qctecmdr 2020-03-16 22:55:50 -07:00 • committed by Gerrit - the friendly Code Review server
commit f0e348558a

View file

@ -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;
}