Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp919936rwd; Thu, 25 May 2023 06:00:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iYR2TKNg+3/E8IJiLZGtZ+cfCMCydIZxSYLMzS99lcQjLPkBUIgi8vK9aI6l6UhQbOQJ1 X-Received: by 2002:a17:903:496:b0:1a6:a8e5:9240 with SMTP id jj22-20020a170903049600b001a6a8e59240mr1244745plb.4.1685019646270; Thu, 25 May 2023 06:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685019646; cv=none; d=google.com; s=arc-20160816; b=idwCZ0xPhnZ9ZU9JxTeLAzdzZSUgo8WYdd8e57tByli10pYtEgc7AQL2kb9bFL7XFw s47BBBko0PE9x5DLmS671P/3aCAwqnCnQCMoqS/MgoLcgRhifpO+74/Gtqm8adkZoi5I WOxuKpTvu0IjLp6+TEvYdQCSIAC+y0g8OyO+eJ/EBvrVhUWfUkoCfjYVkHFZm5u6DsKY 65KILqARkv8ULybjZwuVZGfo7z5jsN78yx1M0AtH4vmtP6NlHpM33bPcUmVzF42UOROo Tl4WbJJmfvDfVar6yQa1PQv7M3Udxvh4Po+ijW+aneAFSiP+DxQTxGGkvAQWpgaoldmR HJKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=3zql6VrCbwQTXhnkE3JZRhUnjSXniNlSH3VFs4iHJ90=; b=lWlpIhR0mTzFb3JP4l5QCr+gxF1Dto2I74JXtl+SYDA9+KTmfzwHVe68Z+JoZJ/lwI eJJIvWXqOsFN7bGZwzMLEvKBTwuEADe2tKjTUWELnzWkimq2wL7tutxGB9k/tZm+9c1t LFBCa3GFgie3QdfxSrvUjo5n6UNJ2hGjvqQGl/L3YYRyLkXaVzn81Rywz3asQHgeo1iI eAJD+8F4GKPa+LFmnRb73uPZLZPxov3WbysI2MlXZg9pSFs97WHt1OUXk4qOduPA3gWW i3dKNcOXhcqAsdZdgsKxoNEgvUFODpdvnT6zmRGN8LRuR9RtA0Lj5F7gIrzGLhoBt9lM +sVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a170902e75000b001aaf45eb4cbsi1477524plf.163.2023.05.25.06.00.32; Thu, 25 May 2023 06:00:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235291AbjEYMyT (ORCPT + 99 others); Thu, 25 May 2023 08:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231263AbjEYMyS (ORCPT ); Thu, 25 May 2023 08:54:18 -0400 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EB7B135 for ; Thu, 25 May 2023 05:54:16 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VjSNUk1_1685019251; Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VjSNUk1_1685019251) by smtp.aliyun-inc.com; Thu, 25 May 2023 20:54:12 +0800 From: Baolin Wang To: akpm@linux-foundation.org Cc: mgorman@techsingularity.net, vbabka@suse.cz, baolin.wang@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] mm: compaction: drop the redundant page validation in update_pageblock_skip() Date: Thu, 25 May 2023 20:53:56 +0800 Message-Id: <5142e15b9295fe8c447dbb39b7907a20177a1413.1685018752.git.baolin.wang@linux.alibaba.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The caller has validated the page before calling pdate_pageblock_skip(), thus drop the redundant page validation in update_pageblock_skip(). Signed-off-by: Baolin Wang --- mm/compaction.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/compaction.c b/mm/compaction.c index 163e2ec70aff..426bb6ce070b 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -436,9 +436,6 @@ static void update_pageblock_skip(struct compact_control *cc, if (cc->no_set_skip_hint) return; - if (!page) - return; - set_pageblock_skip(page); /* Update where async and sync compaction should restart */ -- 2.27.0