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

Commit b0d3f9d7 authored by Surapusetty Naresh Babu's avatar Surapusetty Naresh Babu Committed by snareshb
Browse files

Revert "msm: kgsl: Make sure that pool pages don't have any extra references"



This reverts commit 3ec8a25d.

Change-Id: I5fcbd8194118b0b3491f82dc7451566ac2ce57de
Signed-off-by: default avatarsnareshb <snareshb@qti.qualcomm.com>
parent 1b21e4f4
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#include <asm/cacheflush.h>
@@ -62,15 +61,6 @@ _kgsl_get_pool_from_order(unsigned int order)
static void
_kgsl_pool_add_page(struct kgsl_page_pool *pool, struct page *p)
{
	/*
	 * Sanity check to make sure we don't re-pool a page that
	 * somebody else has a reference to.
	 */
	if (WARN_ON_ONCE(unlikely(page_count(p) > 1))) {
		__free_pages(p, pool->pool_order);
		return;
	}

	kgsl_zero_page(p, pool->pool_order);

	spin_lock(&pool->list_lock);