Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0e34855 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents d3fc7ea1 0feeb5eb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// 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;
}