Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp90951rwo; Fri, 21 Jul 2023 08:58:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEKCQlEcu42yxHCx2Ys4S6IKYtjLjJj7/AhMHE4iPLKpEd6ZuUP56XaKSSydqucDLPveGIV X-Received: by 2002:a05:6358:2491:b0:12b:e47a:8191 with SMTP id m17-20020a056358249100b0012be47a8191mr381961rwc.16.1689955134089; Fri, 21 Jul 2023 08:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689955134; cv=none; d=google.com; s=arc-20160816; b=I+ZAidbgPd13SbYvL1nzxUum1G0yTkSTLxy3ZG6hRIcuLrOqzoK0rZuS1PHw/jQJCw qdTCZjPYwP0M9Ih5Ko5j1CGKBia2SaJsaejyhVzEzDOiT7Az+CmzXWINR9wxsCD3FJVm DFoqcV5JaHPlIaWmGuumB5nBP338FDPcxGGxZ5g0qQyhyiCgZEgHTjiWXpc7IR998hEN O0V9tEnG+yrQao686OZlT5ojtVkVD6cwzDcrfxNssEm/qjt330DkL1i8pnRcnwWLft6b hLnzAC5P9HL0kgv6KiRrxYrhJGDViQz6XMO9/3qtToVUfTclPNQL+KEMxHiXGW8JiaGN dLWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:subject:cc:to:from:message-id:date :dkim-signature; bh=HimBXaqllq26zQkYgjRuRe4b9hljrQWyh4an49zyCYE=; fh=h1ghZINZiFLLlrt4p1llC4IfVINLt2KICwBfPlwm7kM=; b=YF4OjHdvaVztf+iZ2yfFLJp9/LdeHVVODfAFosvsDWztc/fl1NGZoH/pXAWfmA02vZ hPPHJKnMZFnXe21gnmppfo2WxQmnrHwXSjWofy969AYF4OiQ9Bhh2VFgs1otquDr9fW7 91ZEp/Xdh1++/l+uD32Iad1jFEhD0SfJ3TFzA4v4fnC2/hVWH8Ir+LD7/Fj/wzho7aX5 86QQwb5Gzfb9r+MunQX41aFrhO+rGSdxRnh7VQEN567jxQxWOpIxp7EX+BQKAgm0464G B0wjIkqSvxASZbW7VK6UShwZTjSVxuuKzILz3dFgKIZaKCZprBHkpcZ4Uf4KZK1ECo8B 3/mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=QZLeKXZK; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 z2-20020a63ac42000000b0054fd5b1776dsi3324016pgn.266.2023.07.21.08.58.40; Fri, 21 Jul 2023 08:58:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=20221208 header.b=QZLeKXZK; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S232254AbjGUPtn (ORCPT + 99 others); Fri, 21 Jul 2023 11:49:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbjGUPtm (ORCPT ); Fri, 21 Jul 2023 11:49:42 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD7C01BD; Fri, 21 Jul 2023 08:49:41 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-68336d06620so1825260b3a.1; Fri, 21 Jul 2023 08:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689954581; x=1690559381; h=in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=HimBXaqllq26zQkYgjRuRe4b9hljrQWyh4an49zyCYE=; b=QZLeKXZKxP+a56BhL8fnTKdKFfRYJO9cinucv3D3Dt6mouiVOro22Qx1rw6Iv9gdUw 63zDH1LeVKOon8uCOVZxvwcvnKNO541Ag4Lts65nIe8wtY1tnYMnyOLp6U1JL12ZI85H Z8xTUvh9043S9/fdzJLMlbP478i7IBBIqjfEXa6yoRIOFTquWumbQCFpesMum8a6+O6/ dhXXLWrk9iRsH4gmqHUHs5s6z/g+FZbQPmk7fQMceVBg6QT4EiSCXgp3iDJYnwVGsIPF fenRj4Nk1q+ku1aeIxO9QScXid/z8yLzdUDdlXg/Z0eph3j9XvzYfKy29BF9S8Doy0XL E9yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689954581; x=1690559381; h=in-reply-to:subject:cc:to:from:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=HimBXaqllq26zQkYgjRuRe4b9hljrQWyh4an49zyCYE=; b=Chc33tJcTo6JbOT0jvNqYdIFXQHaK7ANnuB+ixZ/bEThr9FCYcFHvaYWe4Ag2uczjL 8un6d4Tetw/wxB3hXenqjevDWujae3sfNXItSGERAce78I4H9jvTtoajpHx8hYzomM4y 3ECUs0qaGc4klCkbjL/4MEt+Bu3wgJrIopGNnTl5Sb1lhz6LojrYcKkXmwcTqmYRkAeC z/AmT5FfnzsinCXNlgGnYSw/ovcMif4KybJ9/xx9RG/2yR2gtNCB5558qJStBKog8pL9 A/5Jpea6Y1HZ5zwSmwmaoXhpWQxXrfPmrLqgN7//V2OFE5fgPfr/BVFgcmT9hNUwhh4o 7Ohg== X-Gm-Message-State: ABy/qLafr7gB169RPyqsGenCq4MWPpoAx6eEX+Nt8lNTlsgKw8xAPNTc MblQ3tVDzJ7MbJEjmeMdrYg= X-Received: by 2002:a05:6a00:15cc:b0:686:25a7:3cf3 with SMTP id o12-20020a056a0015cc00b0068625a73cf3mr513234pfu.29.1689954581144; Fri, 21 Jul 2023 08:49:41 -0700 (PDT) Received: from dw-tp ([49.207.232.207]) by smtp.gmail.com with ESMTPSA id r6-20020a62e406000000b00684b64da08bsm3135187pfh.132.2023.07.21.08.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 08:49:40 -0700 (PDT) Date: Fri, 21 Jul 2023 21:19:37 +0530 Message-Id: <87r0p1jmcu.fsf@doe.com> From: Ritesh Harjani (IBM) To: Kemeng Shi , tytso@mit.edu, adilger.kernel@dilger.ca, ojaswin@linux.ibm.com, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Cc: shikemeng@huaweicloud.com Subject: Re: [PATCH 10/10] ext4: correct some stale comment of criteria In-Reply-To: <20230721171007.2065423-11-shikemeng@huaweicloud.com> 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_BLOCKED,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-ext4@vger.kernel.org Kemeng Shi writes: > We named criteria with CR_XXX, correct stale comment to criteria with > raw number. > > Signed-off-by: Kemeng Shi > --- > fs/ext4/mballoc.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Looks good to me. Feel free to add: Reviewed-by: Ritesh Harjani (IBM) -ritesh > > diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c > index b04eceeab967..e30494f3d289 100644 > --- a/fs/ext4/mballoc.c > +++ b/fs/ext4/mballoc.c > @@ -2778,8 +2778,8 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac) > > /* > * ac->ac_2order is set only if the fe_len is a power of 2 > - * if ac->ac_2order is set we also set criteria to 0 so that we > - * try exact allocation using buddy. > + * if ac->ac_2order is set we also set criteria to CR_POWER2_ALIGNED > + * so that we try exact allocation using buddy. > */ > i = fls(ac->ac_g_ex.fe_len); > ac->ac_2order = 0; > @@ -2836,8 +2836,8 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac) > /* > * Batch reads of the block allocation bitmaps > * to get multiple READs in flight; limit > - * prefetching at cr=0/1, otherwise mballoc can > - * spend a lot of time loading imperfect groups > + * prefetching at cr below CR_FAST, otherwise mballoc > + * can spend a lot of time loading imperfect groups > */ > if ((prefetch_grp == group) && > (cr >= CR_FAST || > -- > 2.30.0