From patchwork Fri Oct 18 09:22:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luoxi Li X-Patchwork-Id: 13841466 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 7C533D2127B for ; Fri, 18 Oct 2024 09:23:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 15E256B009A; Fri, 18 Oct 2024 05:23:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 10F4C6B009F; Fri, 18 Oct 2024 05:23:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F18A46B00A0; Fri, 18 Oct 2024 05:23:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id D27B26B009A for ; Fri, 18 Oct 2024 05:23:07 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id B177A12067C for ; Fri, 18 Oct 2024 09:22:56 +0000 (UTC) X-FDA: 82686183762.16.02682F5 Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by imf11.hostedemail.com (Postfix) with ESMTP id ED14040003 for ; Fri, 18 Oct 2024 09:22:50 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf11.hostedemail.com: domain of kaixa@kiloview.com designates 54.207.22.56 as permitted sender) smtp.mailfrom=kaixa@kiloview.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729243224; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=W38aI5k0hrI6yYrZJ6QefF2h009BJfPUvLSawOTOV9w=; b=OnbQ1wcSgJeudldxxA0dBQV7aIPOrDdOeQZVFQykO83OjoiIWAokC6IDqIyW7lX15VbCn2 cYxMhPPapgJsaT3PratjiiAL1FN39KRXcmjGSN1lXSFDtEvlkubqrH5/RdCceG5NGpmYzJ 4c2Q67T0gy13N0f2tMg6Y6uUZ9eqJog= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729243224; a=rsa-sha256; cv=none; b=zpmHIHJWpSvS5qw+6O2I7YtdO+NQqjliVXF/eHKBWPfuKzsESSzCGZSJ9CZNhMhlj0AWfC O0PtsWYtTZpLa9FsPeT0zLo0MgWaglxXTz1iAKEfd5oT+nPp1lzPec/4uSBW/bCVqe9F5B ZsWbJzhCkGPmzANAUnx5BPyTmf7kODM= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf11.hostedemail.com: domain of kaixa@kiloview.com designates 54.207.22.56 as permitted sender) smtp.mailfrom=kaixa@kiloview.com X-QQ-mid: bizesmtpsz11t1729243358tlgl0f X-QQ-Originating-IP: ioRXDddZbMOXfGalJPOREc2DCfuCqIe19gos57pGRoI= Received: from kiloview.. ( [113.240.218.129]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 18 Oct 2024 17:22:37 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 10716753238939013540 From: Luoxi Li To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Andrew Morton , Johannes Weiner , Vlastimil Babka , Baolin Wang , Luoxi Li Subject: [PATCH] mm: Remove unused has_isolate_pageblock Date: Fri, 18 Oct 2024 17:22:35 +0800 Message-Id: <20241018092235.2764859-1-kaixa@kiloview.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-QQ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MjdRqBt5zOW3cA/0JWXm9JbixYlRpoe8526wIpiMOjBCBZP2g05JaqiDI3SriW//s9PMvDJTjP+u5BOfBykiPkzuJmpUl6dTPVD/QUAOvfnsr+qTq1TSZ0pDRkTZHceghveIlXfSK5OJWlJlvHdI9INQUZltKWukSOEZQuK2cS eegx6I5n MnLSo0e69bwzDc6OXPJVFK6IpkAiiKJ/OlUZMl7ZqEklcOjtAd8rvhrHtu+VrpTqocDa9BuguQO2w5OXGVS6qFp4MeJeaDYj1vX+hwhDPCmj/ORqfaQUXY7xylwUl+26aftO7CzFuWxWfbWDt5ALO4zlgZhHK2Ag+gXm7AlsNlLXB3I97XMe7n/FJvCkqX7g2QGUqWQJbUMit+QgfZ92rl/9qimwJ1UnwpkAfjZMYxh1uoDawMjmGdisoztuoIGHrTsa559qWv1nRpGk= 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: List-Subscribe: List-Unsubscribe: has_isolate_pageblock() has been unused since commit 55612e80e722 ("mm: page_alloc: close migratetype race between freeing and stealing") Remove it. Signed-off-by: Luoxi Li Acked-by: David Hildenbrand Reviewed-by: Muhammad Usama Anjum Acked-by: Johannes Weiner Reviewed-by: Anshuman Khandual --- include/linux/page-isolation.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/linux/page-isolation.h b/include/linux/page-isolation.h index c16db0067090..73dc2c1841ec 100644 --- a/include/linux/page-isolation.h +++ b/include/linux/page-isolation.h @@ -3,10 +3,6 @@ #define __LINUX_PAGEISOLATION_H #ifdef CONFIG_MEMORY_ISOLATION -static inline bool has_isolate_pageblock(struct zone *zone) -{ - return zone->nr_isolate_pageblock; -} static inline bool is_migrate_isolate_page(struct page *page) { return get_pageblock_migratetype(page) == MIGRATE_ISOLATE; @@ -16,10 +12,6 @@ static inline bool is_migrate_isolate(int migratetype) return migratetype == MIGRATE_ISOLATE; } #else -static inline bool has_isolate_pageblock(struct zone *zone) -{ - return false; -} static inline bool is_migrate_isolate_page(struct page *page) { return false;