From patchwork Wed Sep 14 10:53:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "zhaoyang.huang" X-Patchwork-Id: 12976009 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E919BECAAD3 for ; Wed, 14 Sep 2022 10:54:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A45E6B0073; Wed, 14 Sep 2022 06:54:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7536F8D0003; Wed, 14 Sep 2022 06:54:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 641FC6B0075; Wed, 14 Sep 2022 06:54:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 53F956B0073 for ; Wed, 14 Sep 2022 06:54:32 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 2FB70408BC for ; Wed, 14 Sep 2022 10:54:32 +0000 (UTC) X-FDA: 79910382384.11.7742650 Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) by imf09.hostedemail.com (Postfix) with ESMTP id 6D9921400B8 for ; Wed, 14 Sep 2022 10:54:30 +0000 (UTC) Received: from SHSend.spreadtrum.com (bjmbx01.spreadtrum.com [10.0.64.7]) by SHSQR01.spreadtrum.com with ESMTPS id 28EArwni072561 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Wed, 14 Sep 2022 18:53:58 +0800 (CST) (envelope-from zhaoyang.huang@unisoc.com) Received: from bj03382pcu.spreadtrum.com (10.0.74.65) by BJMBX01.spreadtrum.com (10.0.64.7) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 14 Sep 2022 18:53:59 +0800 From: "zhaoyang.huang" To: Andrew Morton , Zhaoyang Huang , , , Subject: [PATCH] mm: No need to check pcp page when free it to buddy Date: Wed, 14 Sep 2022 18:53:40 +0800 Message-ID: <1663152820-608-1-git-send-email-zhaoyang.huang@unisoc.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.0.74.65] X-ClientProxiedBy: SHCAS01.spreadtrum.com (10.0.1.201) To BJMBX01.spreadtrum.com (10.0.64.7) X-MAIL: SHSQR01.spreadtrum.com 28EArwni072561 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663152871; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references; bh=xf+fd/0frzZOUoZL8PD0lt8O0eBC4ao43TlOQy11tPc=; b=7IQHlh8K0SQj2sQ10rm9Ib1cz7pbgy3Zq/fhQMDQl3CnZOgb9xA+9XsmXBSMXrUw5Oil87 dhhLbW3l9eVXb6snszue47fx4SFvnG2nFdDrevVikP5Atz2WyERH9Nx/k5rYdY9LUvebEO dy54GNUaoD0oP2uF+Hh3wjJK1kzlyp8= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf09.hostedemail.com: domain of zhaoyang.huang@unisoc.com designates 222.66.158.135 as permitted sender) smtp.mailfrom=zhaoyang.huang@unisoc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663152871; a=rsa-sha256; cv=none; b=kAMmWT0cdHN49yzVpreSethXAQPFaEvrYSrI8IUpIcvYC47wT/hY3esh/k4iaGmjOSSEYp 1SSjE5Y7Bm2EpjSw80RDEwoL8cOV9Tpl1eEsW9CvnqXgq4gZWlAvTZsMAPWayEaXOboxtq f3QW6EnxW3s57E1bW7+DwyiwcKEHNkY= Authentication-Results: imf09.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf09.hostedemail.com: domain of zhaoyang.huang@unisoc.com designates 222.66.158.135 as permitted sender) smtp.mailfrom=zhaoyang.huang@unisoc.com X-Stat-Signature: s31xskjtjh9awusfbwuzmf1zeks64byw X-Rspamd-Queue-Id: 6D9921400B8 X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1663152870-746276 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Zhaoyang Huang The pages on pcp list have been checked the validity from each entrance. It is no need to check it again when free them back to buddy. Signed-off-by: Zhaoyang Huang --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index e008a3d..131536e 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1445,7 +1445,7 @@ static bool free_pcp_prepare(struct page *page, unsigned int order) static bool bulkfree_pcp_prepare(struct page *page) { - return check_free_page(page); + return false; } #endif /* CONFIG_DEBUG_VM */