Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp432415rwo; Tue, 1 Aug 2023 20:46:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlEZQXAGnnxX9ptE2nWTdHYqLBE4lDSxZ2XBdzP5C0uFob2IZSibY+39pd6V13Ju4RTrCpwQ X-Received: by 2002:a05:6a00:1902:b0:682:5634:3df1 with SMTP id y2-20020a056a00190200b0068256343df1mr17143739pfi.10.1690947996978; Tue, 01 Aug 2023 20:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690947996; cv=none; d=google.com; s=arc-20160816; b=0aYsu9R6NBrxMoyY1BSXAu2dkKyXxoysObfch3xKjltGbyPxHixSiUk4gk31m9AINI YDb8pMoBIw5eEg+RMfUrybs8g8+HC5bHLaxz/0Mqj0egD1c3SZ2QlLCkL4Khu4eeolzF kgbWbCr+e/kxfpdR90EipUwvdfxOtiAvkrqfIVGIKqcPf1SCOvCoL86uQFR7xIbvwRUu X5dzv+r1gUJZp3WjshW4N8MWBOi6sg52AP947OIkcC5TvrgCFWhnCLQMv+B5XlSf8hZe KiUsiEI4mx5gGp+tY1R2KJGt0/l8yi0lq8WQaWzOZwPT3Y4cP0cG+GTFMS7iVR6I8WR6 OFtw== 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=00Kr7A3Y/z3EXiCSo6LqRvW7dvznByRWDrPNCbm9gcM=; fh=nVCxlbJaEuIHWs4qgCgxmjHg/29tavQ6r8UWtr14GlE=; b=k25DeqfYqf1qiY9/AvvLVtEt+64W8+4YPs6aUqBhhdJ3Jz0BqPs7GRwnPE0zBWH59q 2GaD2CU4cBNqfnkLpXpuZFsXZn8XCNwN01D45cqi47bnlUMBapy0jCMT2CgGAItB/cgi FXhjauZDlColb/kqy8hXaMGWOU7NNFxuNUbkN7w85/EP8AWcvB5VEyPvR2ely3tYOs3K fSW0xJZH/7ULxPWsGKrAwQyQ2r6BLhSQHHMdOs8XAA645qmVljsYVw6gusyqqFbhMK0y q549bB4QsudMNRCtjiDzuv6cXep4oG4JbQpWM4mjodqa4o76qXvbsoHCmifceAcgCt8K Kg/w== 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 s16-20020a63af50000000b00563f317e54fsi9912909pgo.284.2023.08.01.20.46.24; Tue, 01 Aug 2023 20:46:36 -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 S231860AbjHBC7r (ORCPT + 99 others); Tue, 1 Aug 2023 22:59:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231452AbjHBC7h (ORCPT ); Tue, 1 Aug 2023 22:59:37 -0400 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EE7826B7 for ; Tue, 1 Aug 2023 19:59:35 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R661e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Vot7iDF_1690945172; Received: from 30.97.48.77(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0Vot7iDF_1690945172) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 10:59:33 +0800 Message-ID: <60c83ca0-de10-1c69-b03f-e3b73c2d01dc@linux.alibaba.com> Date: Wed, 2 Aug 2023 11:00:00 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 5/5] mm/compaction: remove unnecessary "else continue" at end of loop in isolate_freepages_block To: Kemeng Shi , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: mgorman@techsingularity.net, willy@infradead.org, david@redhat.com References: <20230729174354.2239980-1-shikemeng@huaweicloud.com> <20230729174354.2239980-6-shikemeng@huaweicloud.com> From: Baolin Wang In-Reply-To: <20230729174354.2239980-6-shikemeng@huaweicloud.com> 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_BLOCKED,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 7/30/2023 1:43 AM, Kemeng Shi wrote: > There is no behavior change to remove "else continue" code at end of scan loop. > Just remove it to make code cleaner. > > Signed-off-by: Kemeng Shi Reviewed-by: Baolin Wang > --- > mm/compaction.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/mm/compaction.c b/mm/compaction.c > index cfb661f4ce23..d38297018077 100644 > --- a/mm/compaction.c > +++ b/mm/compaction.c > @@ -670,9 +670,6 @@ static unsigned long isolate_freepages_block(struct compact_control *cc, > isolate_fail: > if (strict) > break; > - else > - continue; > - > } > > compact_unlock_irqrestore(&locked, flags);