Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp345225rwo; Tue, 1 Aug 2023 18:34:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlELtrI/GglPQqSOHp+5YSZ2lZ0zgVfiBgFwFPWvDAdGbjrRA+VHqA9S/6eGw9pls/20nQDi X-Received: by 2002:a17:906:217:b0:99b:eecb:275b with SMTP id 23-20020a170906021700b0099beecb275bmr3561128ejd.19.1690940069425; Tue, 01 Aug 2023 18:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690940069; cv=none; d=google.com; s=arc-20160816; b=GAYshLjSBXu2LOXfMKJq1UbtSmkZgZtlRTo5CMr/KOvUE17O13ff6jaD/iNkQpFrAu PAyCR0cVeYy91XGs2Eu8xrNxmX49LHRKFxC6lkIEN3jL9Rs2StKuhsuG8ai8RPB/VUx2 IlEU7VyYyooY18bO1BAe42NNlIaVQAOcxYfYHZAzU+s4jBS2YRMmbiULPfsfB63p44Bk 33m0O40a1vOPYNp1WCzOQ3sNIqzbACC4900fMOhBpDm0S43Yz5/uT92WB2glZP2rCLL9 YYxb3nA1bSzjNuh/BZeIq7cf2AP0wh1y8fnI2X1jTjv5L16vpkUS++DrZSaI7+OPQlLF q73Q== 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=C9gsGeQ/LoJ7llZZGLwajHjT5nPFz20stmvofsT7eEA=; fh=h1ghZINZiFLLlrt4p1llC4IfVINLt2KICwBfPlwm7kM=; b=yYMYUfb0N80gTMQnOLfXcK60jnFEu2dQTX7Qfgt+QKt7zQbdOs3I7oXulyAcbZlcuM gW8P/hRdVPxPxSmSKqau9xmaItyC2Ikco9JSyhfZj9RV5EE2tqJA8qP6W0FsRmDc9hL3 OTaIQYtFLVBMoq/lyDcY+XMv6weqGX6O6cMYrgZSHYYB1c/3RoewgkIzmdJIPnKZvfa4 2ugHHS3BtfzNLDEf5xrX/4QtmNd1PmKp+6+Ti9el6luGpk4PO6YpkLnP6lAm+VJb4aa1 6EKxXRqdY6EggnYo0OjOcGHwcFwSL3dffQN8ts8f4g0QC9K7Z/32A79N0BhjOE/0acm1 yF9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=hnpOzrgK; 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 a13-20020a170906684d00b00997bd26a559si9843299ejs.881.2023.08.01.18.34.01; Tue, 01 Aug 2023 18:34:29 -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=hnpOzrgK; 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 S230308AbjHBBS7 (ORCPT + 99 others); Tue, 1 Aug 2023 21:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230155AbjHBBS6 (ORCPT ); Tue, 1 Aug 2023 21:18:58 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA1151FEE; Tue, 1 Aug 2023 18:18:57 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-267fc1d776eso3708783a91.2; Tue, 01 Aug 2023 18:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690939137; x=1691543937; h=in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=C9gsGeQ/LoJ7llZZGLwajHjT5nPFz20stmvofsT7eEA=; b=hnpOzrgKD3dQuM4yqYvt4tt6Ek4eSllhDzfOwXlcWc8TqgDQM1sYqM2yVUl/X057+o kgxbSxQnmLzZErVjfDyWaR/vvUWsv5h2fncNBb7ywm2YoWPex0Z/ls9QgCL5YYCBq+Hx LPVzCIh0eOYWfCkO/B7oPHs1gJjFKfXubHoD9Z/BWhjgDuJL/1v3fQ8Rt3jpfNyOepE+ 3PEtdxTW/lTviSTPD7ePAekCh9h/GbsllHrim4nsFFFwulPwOAcIw+zN2wgAtuiFm2fa SB0Rul9bEsu1rHGCIgg6lS3Q4UNO04XeynaQuVa7U5rEwenxqcS08mEiGYR6FQF79PDZ 3g2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690939137; x=1691543937; 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=C9gsGeQ/LoJ7llZZGLwajHjT5nPFz20stmvofsT7eEA=; b=h/10yr55gzplYUqy0c/VXFXNR3MWg+cB2LMDouu8QHcVswi30W7hfUlo6TWBp0FY8r aPwGXX9avrou9h7t2mi7Z1az9I+biHFdc+1EN6P9TYKEMhQqcG5XI770NMN1Qauz6Nqz syT02typsTUwLYBeEMQpieAc2nt4BvE947/A5emyYT+GHtphwLj2wZYJyGtA7Tuk7FD+ 1l/ZE3WYWZrRAyLrwnIksmq5aKUDvTkvBvFsDZ0viCyx0vPzqR17p1yMQrRMMb72xCMJ G7f/yavVfmDVB/GIxz3f8JrPyUekVfof2Gwc1XUREBLFt2dMk7naYvpTnukg61wNJ+kO obaQ== X-Gm-Message-State: ABy/qLYmKQpRZgmTDsCQan3DRDiLxRimpgmAma/fBcqxEa0dXrxWS3kN EFcnWlzfRsHq+4m2dMXz+Wo= X-Received: by 2002:a17:90b:1c84:b0:268:557e:1848 with SMTP id oo4-20020a17090b1c8400b00268557e1848mr12667735pjb.2.1690939137055; Tue, 01 Aug 2023 18:18:57 -0700 (PDT) Received: from dw-tp ([49.207.232.207]) by smtp.gmail.com with ESMTPSA id c8-20020a17090abf0800b0026814d83a5asm104773pjs.26.2023.08.01.18.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 18:18:56 -0700 (PDT) Date: Wed, 02 Aug 2023 06:48:52 +0530 Message-Id: <87v8dyw8ar.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 v3 10/10] ext4: correct some stale comment of criteria In-Reply-To: <20230801143204.2284343-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(-) > > diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c > index bfaab173a3f4..1e8ce0ece47a 100644 > --- a/fs/ext4/mballoc.c > +++ b/fs/ext4/mballoc.c > @@ -2782,8 +2782,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; > @@ -2840,8 +2840,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 inexpensive CR, otherwise mballoc > + * can spend a lot of time loading imperfect groups > */ > if ((prefetch_grp == group) && > (ext4_mb_cr_expensive(cr) || Is this function defined at any place ^^^ -ritesh