Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2915080pxb; Sat, 26 Mar 2022 07:05:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC8MHUasSQZiztkgcXLhvJW6Mlngp2Wl5SUM2lxkD6X0UIrmbxTTIFtGjkE4Dj3XgXO++7 X-Received: by 2002:a17:907:60c8:b0:6da:83f0:9eaa with SMTP id hv8-20020a17090760c800b006da83f09eaamr17112162ejc.605.1648303517434; Sat, 26 Mar 2022 07:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648303517; cv=none; d=google.com; s=arc-20160816; b=OW8w6irQks6e4GDwPi6vASe7JuC42Gtf9HfVP+585RnQUDd7L/93nRhxQzUdCINFkK 65uraHCynlLQD/3/5K5Eso4j5IcJA6wHNuyTqp3doklwnBHLevy14vS/9E0XAuvVo/Gm mfTNzfxuRP/8IEhKep+z60wZaeZmYqZGiAd4IeEwPggxuZLuoa7bR29sQN8Z8rM1Gyks 4RkOP4FI2bHxi/Ip1z5pTNiNlgQ3QHwmI/NYT97HeSRS9XlJ+3y5UEBrq/XeBHM/ZDHJ 0pYgMZ3LN20izulFAZ49QKwneq6rkEHw7JtpHtyInkcnEGqPvTC35AuxmJ/jK3WbxgGF L/xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Yfxgj/Ew8GtsKZPCVL1uR3/Y8py+M2d0hw2Q0ogbCkI=; b=RN2yALH8w2jt6O96nbQ7z1RpTe2xwsyg/W2PSOBkfC860nikhcUUYVKMPlBvRhwrN9 3k97Zd7JBmNiz0yaL0hoqXItfSCrojfHggr9z14lcVEDmaDqlQcEAMHkQb1lnKGQuu76 GtfrkPcqPM+6LvXslNkem3H34wXkwg+jGoyOaB+33WN7fVaMtyJf3hi9ob7C2GY5Wv9F 1N5gtxkqJjR9j3A2X7Y7N6UB0XLEAYlR60rbu7lANdRSY9BxRZkKjzOAm/Vg2Ld/g+Lz bcZZd7vQ3NtKUGGNFMYv5mdhKUoODSPkbSiGF3V6NrFDrmLLtCbaVdzcT5GWSpVfxBfM nTFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gBouKIs8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id la11-20020a170907780b00b006df76385c65si6208625ejc.261.2022.03.26.07.04.51; Sat, 26 Mar 2022 07:05:17 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gBouKIs8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231428AbiCZJpK (ORCPT + 99 others); Sat, 26 Mar 2022 05:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbiCZJpH (ORCPT ); Sat, 26 Mar 2022 05:45:07 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 766443DA5B for ; Sat, 26 Mar 2022 02:43:30 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id yy13so19632367ejb.2 for ; Sat, 26 Mar 2022 02:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Yfxgj/Ew8GtsKZPCVL1uR3/Y8py+M2d0hw2Q0ogbCkI=; b=gBouKIs8Cm2K91cJDxQvJqFumF11BVgxktUUcRlEDjkG3oM2XZ7TlqtxXZ2C8VFc/y kqWbx9oGwyr5gGQeJ7D/uWMwIru03efmlgaYKysu9FC0iWokBYPo50gWhMJ7iImBAruS GWkzT3va1fxi+LbTB6l+UKWEzEOc4b/WZScwTenQFCa2maAp6R1tMcM1ybWUzQEequwH v1odE+x4MZJFnHfseevplpTk0n3HdQx64de2jCihjZZ9XSrYB+5XdMgkDDc0l5zZzT2y Bic5c6weSYRh5SIhCZfZGBD5XpuDnXiv3lrSxxDPD8QrbcOr54uHURhT+7UcQL1h1COX 0i/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Yfxgj/Ew8GtsKZPCVL1uR3/Y8py+M2d0hw2Q0ogbCkI=; b=T4uACI/kfO6BtqxzRw5F1d6japJr05fAumr0eIkNFzwH3NLYlb+fLEaLu50TlwVE3F WTWRvXl2gDGYWQcHKX10/Wt+cTBicvf/lyMFTP3iBqnwwAqLmkmTQFkvXcxYHjxUAeXS +a/KzRloif7ZYju3zcFb+wWVMaPKdJFUT1RpBT1nP7T8iknQAgAT8pHJVcoekd6XyWuF L6a6DxlSMxUcLh7hbiCwhy+JQ5GIWV3UcGAd9fR5EvXLX9gv6Bg98c/Si3AWnUj2azDi TJ5B90JpnhPKCKwIk0r7gKK1dmev0p1qrTwDuCDGIxN7QibzaIJfksOSv2PHJC2SD19K uagw== X-Gm-Message-State: AOAM53247uKA40fjeLMXLHguGjSX5LtvLuYK7jqvENH/6tWmj6M7xCbN eR0ZfbD1vrTwvZbg0cANefE= X-Received: by 2002:a17:907:8a1c:b0:6df:ecd6:b6ea with SMTP id sc28-20020a1709078a1c00b006dfecd6b6eamr16335029ejc.530.1648287808769; Sat, 26 Mar 2022 02:43:28 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id u4-20020aa7db84000000b004136c2c357csm3935992edt.70.2022.03.26.02.43.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 Mar 2022 02:43:28 -0700 (PDT) Date: Sat, 26 Mar 2022 09:43:27 +0000 From: Wei Yang To: Miaohe Lin Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: compaction: use helper isolation_suitable Message-ID: <20220326094327.hofczncyzqyrxdxw@master> Reply-To: Wei Yang References: <20220322110750.60311-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220322110750.60311-1-linmiaohe@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, Mar 22, 2022 at 07:07:50PM +0800, Miaohe Lin wrote: >Use helper isolation_suitable to check whether page is suitable to isolate >to simplify the code. Minor readability improvement. > >Signed-off-by: Miaohe Lin Reviewed-by: Wei Yang >--- > mm/compaction.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/mm/compaction.c b/mm/compaction.c >index c3e37aa9ff9e..86f34053c39d 100644 >--- a/mm/compaction.c >+++ b/mm/compaction.c >@@ -899,7 +899,7 @@ isolate_migratepages_block(struct compact_control *cc, unsigned long low_pfn, > * not falsely conclude that the block should be skipped. > */ > if (!valid_page && IS_ALIGNED(low_pfn, pageblock_nr_pages)) { >- if (!cc->ignore_skip_hint && get_pageblock_skip(page)) { >+ if (!isolation_suitable(cc, page)) { > low_pfn = end_pfn; > page = NULL; > goto isolate_abort; >-- >2.23.0 -- Wei Yang Help you, Help me