Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2110574pxm; Fri, 4 Mar 2022 09:33:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWbmiynJvj4YDml/TYfGh9Q2/ToLfyzyaAx8EsceWcQBJ7oJaUIyPjdBQ9oNpKYMp37Gke X-Received: by 2002:aa7:c4cf:0:b0:416:e28:45b9 with SMTP id p15-20020aa7c4cf000000b004160e2845b9mr2298855edr.319.1646415195684; Fri, 04 Mar 2022 09:33:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646415195; cv=none; d=google.com; s=arc-20160816; b=XYjFtgHFI0okBxXiKInjDSyY3AUVDA9okLq8kLaMMOVhmwxGJTOy4S8Z5caG3oxOWz 7N6BLTY/vFhMW/kH0E//yJZ+kFc/DvHGuITkWe1JdnVdnJS7DUM7rQah/SAcGbDBwlOs btzLAltsiZAmT/PLNCDRZ1USvmKTlKyP2y4r+hcYpor1zQHdU8ts9qhzRpo5lHdrSi4U bpobzoZ5uz8ufcy7L75kfhsOtxDPlB+p2odlASytGQonzjft2PhQJiRO0Y8VPbZQ3F5D p1SCXBSIeWrTcxR8By3NTbMMLTmGuTkRDg4xqtVJubKL/mxbt8X8uREx8GHgCbsu21jM asbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aW9lvZ4dtbSnb5vRxxWyeix7lFOlWIDTA4WPLsisdRU=; b=P9OossWxdGxdl4Rh3ZzA9ve7R0VOgaoOuOM0f91TxCyI6ZkfnKvyeEmjHyRkLenNRc GfnfhCo56Rcu4dCEIgvmWHPjS5Zqpb9qSfIbUp4rkTeSmZvrUYSPl0Dk/2QwjgWTDygT kwPCT7jDCHm/AWhReYV53OOrbaPDF+bsp0N+KkxdDUWqXcDSmCgTZrUOISbf97oHj0yr U5gR6HxLkIEWkLw74607GFr+/RvQ0tyUA4uFzzywYL1YKb6aLGXufQnyzR1O1Z+KQddU kZCLQvbFqbLv4Y9E69uMeC1ZWViMJw56Rci2Ikk1yII0qdAgPinietKweRdPLYnEh5iH jW0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="G4L/o3Ft"; 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=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a170906520800b006b90c613be9si3334627ejm.321.2022.03.04.09.32.25; Fri, 04 Mar 2022 09:33:15 -0800 (PST) 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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="G4L/o3Ft"; 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=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236179AbiCDNx3 (ORCPT + 99 others); Fri, 4 Mar 2022 08:53:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbiCDNx1 (ORCPT ); Fri, 4 Mar 2022 08:53:27 -0500 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11D9E41FB4 for ; Fri, 4 Mar 2022 05:52:38 -0800 (PST) Received: by mail-yb1-xb2a.google.com with SMTP id g26so16936575ybj.10 for ; Fri, 04 Mar 2022 05:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aW9lvZ4dtbSnb5vRxxWyeix7lFOlWIDTA4WPLsisdRU=; b=G4L/o3FtfwOM+5U7v/cMasla1R/gqvL/VZv0ArvW/oJWzkNill5citnJWlLID1Q8vN T9HHDfrjDB3xRwZhz3vm30xArsDCvnzMNGMTv8QBkCj+1u5oC7eCxe3wFAMEr4J79l4v 59rLrohmpXqWbT5q8lqmJa4n2iksPBYV9dDXtKxDEEsAhc2j1xCWQ9hbkoABI1PocRai Tgkg0NNtcoOqToCqHMAzPCK1PDp/srNvjfaaKZK8pOWWXoXDrrHusjSOdMggXeSZ3+Sn gqCJVYU4jb12782LqmOHxjsmLwSCFViJ+WdVsTLAJ4oasOwoQs4QpHk+AqLtUn4Epv4L mGQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aW9lvZ4dtbSnb5vRxxWyeix7lFOlWIDTA4WPLsisdRU=; b=khsVn9w5OX2MAe2ODc3SSrqBVBG4TDh+imE/6Dt1/fQBlxhPawxW6SHFOguxiqqfrO 8SwVszSpcFHIKB5EgqNnQ4GliZ/mDMOrNah6kfFDUm41MnAYyoHUXYGZjqQIUJzkpCSR rAROVbA19f1czaA2hGkpH/FwrMXcwU6N//NpN1jK75Pgi7aG/9tGxCXG95RlNT9OpRc3 liG8sS46OsLVQnpmIWK1PXHUhm5FVpQYr1l/K7crL67GlULz52Pb1Jf9jolBR6K+26yS 9gllH6qo9krwlYieJt/+tR5FKvLlAuGXgF34lq2Gmt9REzqFstUtTtChLWiBu4m8Au0d VwPw== X-Gm-Message-State: AOAM531aaEF6WnW08hAs+YSUEomG1nPCslLdPXa/dIe04qFIX4ZEKusy wqkXlwm3r+ygS/gbwk6DIfjhzWxLSD7GW+RcGze1/w== X-Received: by 2002:a25:e646:0:b0:628:9707:9872 with SMTP id d67-20020a25e646000000b0062897079872mr14462120ybh.6.1646401957883; Fri, 04 Mar 2022 05:52:37 -0800 (PST) MIME-Version: 1.0 References: <20220304093409.25829-1-linmiaohe@huawei.com> <20220304093409.25829-8-linmiaohe@huawei.com> In-Reply-To: <20220304093409.25829-8-linmiaohe@huawei.com> From: Muchun Song Date: Fri, 4 Mar 2022 21:51:50 +0800 Message-ID: Subject: Re: [PATCH 07/16] mm/migration: use helper macro min_t in do_pages_stat To: Miaohe Lin Cc: Andrew Morton , Mike Kravetz , Yang Shi , Matthew Wilcox , Huang Ying , Zi Yan , Minchan Kim , Alistair Popple , ave.hansen@linux.intel.com, o451686892@gmail.com, Mina Almasry , John Hubbard , Ralph Campbell , Peter Xu , =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Michal Hocko , riel@redhat.com, Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 Fri, Mar 4, 2022 at 5:35 PM Miaohe Lin wrote: > > We could use helper macro min_t to help set the chunk_nr to simplify > the code. > > Signed-off-by: Miaohe Lin Reviewed-by: Muchun Song Thanks.