Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp203678rwd; Tue, 30 May 2023 18:53:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qv9Yo+62/qKUXIxu72NbfITGGJD+LuZkR2htcaQk8892AM3/KKO4OGU5UeAjEOiTVyWqz X-Received: by 2002:a9d:4f06:0:b0:6a6:5a48:1f9b with SMTP id d6-20020a9d4f06000000b006a65a481f9bmr699265otl.8.1685498006982; Tue, 30 May 2023 18:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685498006; cv=none; d=google.com; s=arc-20160816; b=v/nGKouvGZx/2yxS3D4PjrpXHQvavSvStKZ9YFfzRTcetgjCb6bP0OM1Pyom5ThwLJ jWK/D+ocQiZ8LFEBZHx9RiRiiKcWiC7TzYQF6wItCsmp2LcANYT76wyz4/VoQqcol56d E5JrmRWuv+Cm5noCAktYada5EdYwI6hNf8xP65f5GW92XLa+UnT9Q4FfgM1chwcFtSqd tuIXwRFYyr0Tpe7wTyg9k01OSZ4V2WQWLkLhCKQ4+jUcqEmfFRwMMddTFOLs/uM3WIDW uwzV6+edz93+t4dH7y+uOiF1s6k/w5hTTL4R1zYGip9LGP8UXTqyYi/gf9ojlN9iX76h 9tHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=Ta9g3gkYxNR3NDRP0hSjLtg1DRWXZjsdilXOX76aDbY=; b=BBkSwyDcjZ6tb7ZlveDtoaU76xq6ZdED1tKQR6ZMG68r0AVPmB59unSuHP6D0bwuvf HCN37BhKt/Q042sM4D38ftShIpzIqpQdTUtXvviOJr5nd7ya3UVkidmjZR3iZam2pHMa QHKIuSCymUspIgCb2YwFWels9rGKri5M1f9B9Fz+k6bUeqLPHc2ceCfanTMnyNlTCqja QG3f/a4RwCWgtWwmJt0jy4Wsi1su0N2I0cxJlW2A7Hhhxz+N9/y4bUlvuG1M/BhMTxbf b8HsqtRVSoIIfVnPSZF/E9dStaX8uWRN1gLBqQ6icmfiTt98xlCWFO/7dpuTj0VbHS0p OpMQ== 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 w24-20020a63af18000000b0053b8874cee6si90656pge.358.2023.05.30.18.53.15; Tue, 30 May 2023 18:53:26 -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 S233750AbjEaBoJ (ORCPT + 99 others); Tue, 30 May 2023 21:44:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232081AbjEaBoI (ORCPT ); Tue, 30 May 2023 21:44:08 -0400 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66385F9 for ; Tue, 30 May 2023 18:44:06 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VjvObJY_1685497442; Received: from 30.97.48.48(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VjvObJY_1685497442) by smtp.aliyun-inc.com; Wed, 31 May 2023 09:44:03 +0800 Message-ID: <67234104-c059-1262-1c69-10b966700036@linux.alibaba.com> Date: Wed, 31 May 2023 09:44:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH 1/6] mm: compaction: drop the redundant page validation in update_pageblock_skip() To: Vlastimil Babka , akpm@linux-foundation.org Cc: mgorman@techsingularity.net, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <5142e15b9295fe8c447dbb39b7907a20177a1413.1685018752.git.baolin.wang@linux.alibaba.com> <6feab6b0-ec49-8651-bc8e-14ec40249017@suse.cz> From: Baolin Wang In-Reply-To: <6feab6b0-ec49-8651-bc8e-14ec40249017@suse.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,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 On 5/30/2023 3:27 PM, Vlastimil Babka wrote: > On 5/25/23 14:53, Baolin Wang wrote: >> The caller has validated the page before calling pdate_pageblock_skip(), > ^ u Ah, sorry for typos. And I see Andrew has already helped to correct this typo. Thanks Andrew :) >> thus drop the redundant page validation in update_pageblock_skip(). >> >> Signed-off-by: Baolin Wang > > Acked-by: Vlastimil Babka Thanks for your reviewing. >> --- >> 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 */