Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2451755pxp; Fri, 18 Mar 2022 10:43:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxspBZwiz08B9bdPe0VaEu/RJDz8QT/TVYPC03coAE6ohpn81Vq2GNxoRMaC6Ca1zvoDfAm X-Received: by 2002:a05:6a00:ad0:b0:4e1:2d96:2ab0 with SMTP id c16-20020a056a000ad000b004e12d962ab0mr11427612pfl.3.1647625420592; Fri, 18 Mar 2022 10:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647625420; cv=none; d=google.com; s=arc-20160816; b=rkvLuOtIMGPEaj4BwbMwl5sBMVJ1sFl3rDV1mWGOf2oYf8U2nXNnzD4WdspIqFvxWo 92t9K/5zQG/K2563SLN/a770stggGlM+BdehyN9Li2CGh2pKR/rMLGExy+zAw0Ccyj0B JUwgjo150fmx8inQspPLwvxj4xif+R2ea54qcreLGlQ4KOL3xZU04PW38qN4mweHjoD1 kbFRqWhsJx0W8jxqkrWM2C1QAATm8dTTFYlYpZ3E/OHfazN2YfE+Ea05tcmZ1VnWEtYG OBwvn2mKqTLIKZSgYXIhPC60Kul5n0dQ7H/0LXaoFC3swlWjHEO8n+VjXrhsgDSYBGeJ VSoQ== 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=5QnHQHpOTgabEjZ7FQy/cLMZsS5a+z62yl/RPsQ9TFI=; b=LtkKZE/FOCMw5BTTX8LIE1aVo3j8R6uZIYF3ciB6Gfh3qgxe9VfoLHdLsGgDjnaEwM zx/lSE09DJQJa7fHFtA1Jp8wn8PW1JfiQnkjk82U7af9xNXGAoNuQsN7vc4VKmcuPPXY uYkZoy3ZdYNN1HJs02rxPTbrpOF61XqiBe5vsLFO5OVv0Fkbqtb3crZg2Cb+HL+hCXzS odjKW86htKl8aVa2Nj9Hc1zMvnRQcw58cbv2AbXuWqJnfxnxavKikfgbqMXRHY2n4722 ZRcsKMblewfFLzw0j4E8qj8/1YZG1FY2adCsXdUmf3SX1op/uw1I/mSgCJJUaPV1iFfA dEuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=ejwqej9f; 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 130-20020a630688000000b003821c6a6897si4231634pgg.758.2022.03.18.10.43.27; Fri, 18 Mar 2022 10:43:40 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=ejwqej9f; 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 S232883AbiCRHEz (ORCPT + 99 others); Fri, 18 Mar 2022 03:04:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232878AbiCRHEx (ORCPT ); Fri, 18 Mar 2022 03:04:53 -0400 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 4EC1E6E341 for ; Fri, 18 Mar 2022 00:03:35 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id j2so14435860ybu.0 for ; Fri, 18 Mar 2022 00:03:35 -0700 (PDT) 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=5QnHQHpOTgabEjZ7FQy/cLMZsS5a+z62yl/RPsQ9TFI=; b=ejwqej9fSv1GrF/H7RnraHiJyiu+f0zh485TU+/N4propfaqIbs3tpUSIZ40ya2KaK VbVEje8kwGNQeVdQv257qwQFrZjopCl/gz8+5h1AwdwGm3pXwchxvtSgiWTapZVnqBJN s/jcL+Z+ax1QeFJ9sQuhifKAU45wW7c8zbWdq2QxsAuCjHL8P24KMcKp/H8ImFsoe+5+ XxFUDdqxW0qRsL7Bk32WNOHb/PmQ29hUSmwx5BKyweyH7VA+VAYH8lIMHivRS703aP5M mT+gEhKrcl/I4IeZjVcW9Y4OVwTbxqldlHFxHsG5lFuEN/LHUGJUYZ9UCUNKusgXID8P oAGg== 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=5QnHQHpOTgabEjZ7FQy/cLMZsS5a+z62yl/RPsQ9TFI=; b=w6gjAkaxaAJrVQqP4BlVZamYsVKHXJ9igs4m+ibqtOGa6QBVeFRCeJ7DRVjhbAn0+j Vy+q6l2oSvCpB8Qwrq251H/BOkjH3b9vIR7lh9uhKfCe3HaLeuEXp37G7PJBzw0phlhd U+zVXFkfZRdSq8bcBI8LE1gGfi2c6Jarng2ZPd6vSpaM2QhnYWOwmxdXmbzC8LCPWNHx dz8tNm0OTCudw2qlHyo8Jd5cDGC8btP+w3UXVMERH106A1PrJ1TgkIPr1SZAKCTknlWk GF+9dJ2um2n2upTKqsaxyFj/ob5BJvwGcDXHt0gySLJgu0Gt+AjovqeLtweJeddyxS6P tcxg== X-Gm-Message-State: AOAM531yo8bTD/veW2O5HMMhAk+Ysps6hu/9zS/hhhah+RSXjZnD8i7j CjfSL7Mw2RXAJvfGxE+dsOxeE2n06Oa4fJROA8lWNQ== X-Received: by 2002:a25:8390:0:b0:629:2839:9269 with SMTP id t16-20020a258390000000b0062928399269mr8833219ybk.246.1647587014609; Fri, 18 Mar 2022 00:03:34 -0700 (PDT) MIME-Version: 1.0 References: <20220318111709.60311-1-linmiaohe@huawei.com> <20220318111709.60311-7-linmiaohe@huawei.com> In-Reply-To: <20220318111709.60311-7-linmiaohe@huawei.com> From: Muchun Song Date: Fri, 18 Mar 2022 15:01:42 +0800 Message-ID: Subject: Re: [PATCH v2 06/11] mm/migration: use helper macro min in do_pages_stat To: Miaohe Lin Cc: Andrew Morton , Zi Yan , baolin.wang@linux.alibaba.com, Huang Ying , Alistair Popple , 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 Thu, Mar 17, 2022 at 10:42 PM Miaohe Lin wrote: > > We could use helper macro min to help set the chunk_nr to simplify > the code. > > Signed-off-by: Miaohe Lin Reviewed-by: Muchun Song