Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3596922iog; Tue, 21 Jun 2022 01:56:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tFeaUDooMMTtpACTuB4KmGGt+3GK/AZYAwhu7X7zR17Dv6J1hRMxQZYs+K/bbEINhcSdXz X-Received: by 2002:a17:906:d550:b0:704:7ba6:9854 with SMTP id cr16-20020a170906d55000b007047ba69854mr24695013ejc.579.1655801779147; Tue, 21 Jun 2022 01:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655801779; cv=none; d=google.com; s=arc-20160816; b=dzkuihQryATbnt3w6pxasd+uHESwOBbhtrde1kLfPvqpoOsraNeqrTqxBUJngMOdHo XR6ny1VGZ/nqQPI1tgvdUrwe48tGUcJvIEeayDz7oB8IQ/ZGTWIATr/oKOWjDYd5hgiV ANES/edDFhHzvI/g9e/II+2HVTDYztjixRnKWUkLTm+XrmgMTTn/Dai6m4bzeWS4sJ/S iQuoPJAOFNlV1ZIsJI+SR93ig45VicXbmXesjo6pMnfdm1JtShkQJqt/8ed2NCYcJR+X fyO1ozqRq8XJHfv1WYnQMa2crXwvjRozZDg6MIyDdFHThQoa2YR8dg9jI72mZNwIOi6a fhiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=u7YnhhQYtJ0M3xC7HRSVT7bml8DDqb3tmwKspbCUexU=; b=HX2/lZ9lOS2Yy935v1xQwudIxsdnSBL9cxyYueECYfaOZskbg4VdboKKOGd0sykjd6 ewRXzhT8FnCssA8RVPD8u6T3175C87IkBYkmFNN2JPcVwmoB9/7SVYkBKdxQGVwkmgby s04Az64wY9Pik+FY2uPmrIgM5WTYFmnp/J69fpRdIGot3uHgCxZSoS8/Ukg8Yf0nBEcD PademZCdjSXngqCYGkyl5kVo10x+dhuORT2A455e9EPTzUeRZQsEK6WGZx3lfcm261qT GJUtDb3t19WdK+YpQTxMjMLt0UzLgLSIeI2LVMrDKf1xR8A9+KNTQ8jwGTbnF2opMhvI 3hMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eUtaQ659; 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 oz44-20020a1709077dac00b006e87a109539si17780324ejc.204.2022.06.21.01.55.53; Tue, 21 Jun 2022 01:56:19 -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=eUtaQ659; 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 S1347316AbiFUIjz (ORCPT + 99 others); Tue, 21 Jun 2022 04:39:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbiFUIjx (ORCPT ); Tue, 21 Jun 2022 04:39:53 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43E7925EA1; Tue, 21 Jun 2022 01:39:53 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id z19so1515080edb.11; Tue, 21 Jun 2022 01:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=u7YnhhQYtJ0M3xC7HRSVT7bml8DDqb3tmwKspbCUexU=; b=eUtaQ659iBtSbi6vx63Og3HtODbQYAQNj9VhsS1EgSNPlkbhr3W2Smwq8h15cEzVSG AU5o3Zziy2/7i+ADUyCHgY9NACZI/PP/iRX77JwlroSG52F7gaEofiDYzobfPorXQZds GnpxTc6zz3co2reobFDW2tKMoR0uMm8n8/kgHPmZ9PvR/+dsSAuVx8IonB4s34v8G0sr qJSpx6voJhP1DXSV50ZhODltR4I1Txx38t5S010s+9bhgs1xxG5x//GZqlf8Tg8YtAp1 ljaBdGWGL5GZHBxo2lOjZVaUgtiLF9+hbbExtMPb+ATTNKwVPFUBQKLgFd05vMGwr0LX OoqQ== 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:content-transfer-encoding; bh=u7YnhhQYtJ0M3xC7HRSVT7bml8DDqb3tmwKspbCUexU=; b=dl0/C8nLz4BsiETwpFyTUmHMyVKa51fXt5Wi/WDfvkC+MmyrmiyQiZBOPV0iS6SPhs Iem02dS3/5RLR7UR6Hpw3oyux0xAQko4UV9afU1WU0vE+SysEcT68xFjlOJ2jfRnaYYI kVgaAZf4nKsOQjGZG9QWNq5wBVVCW+APgN6TmFppnX6Buy+z1cwr2fxYnTBH0Vv8mt5+ bNYCi3a/7cq+9XTzPX0j/aOSsZvRADduOfhGrklhT4+S0ioMSu59dT7whzQ3Ph40jnIb U/m0YKvOh7VBOfWfPJ26+IH5jt5vxIWbKPh4ErqVD5f07MTkjmc0+OXede/Lp+648yLz aHvw== X-Gm-Message-State: AJIora+qb2xSPkPD390CfHk8b6pCF3wzAGtz4EUjg0iaadj7aFnVDavb qlRJwHjvvno18q7Z0DuvW8JOoHzTUcVwEMptqBNTyp2hCnRdTg== X-Received: by 2002:a05:6402:2790:b0:431:4bb6:a6dc with SMTP id b16-20020a056402279000b004314bb6a6dcmr34533918ede.48.1655800791735; Tue, 21 Jun 2022 01:39:51 -0700 (PDT) MIME-Version: 1.0 References: <20220621070224.1231039-1-zhangshida@kylinos.cn> <20220621073943.GQ227878@dread.disaster.area> In-Reply-To: <20220621073943.GQ227878@dread.disaster.area> From: Stephen Zhang Date: Tue, 21 Jun 2022 16:39:15 +0800 Message-ID: Subject: Re: [PATCH v2] xfs: add check before calling xfs_mod_fdblocks To: Dave Chinner Cc: djwong@kernel.org, dchinner@redhat.com, zhangshida , linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Dave Chinner =E4=BA=8E2022=E5=B9=B46=E6=9C=8821=E6=97= =A5=E5=91=A8=E4=BA=8C 15:39=E5=86=99=E9=81=93=EF=BC=9A > > On Tue, Jun 21, 2022 at 03:02:24PM +0800, Shida Zhang wrote: > > Checks are missing when delta equals 0 in __xfs_ag_resv_free() and > > __xfs_ag_resv_init(). > > This describes what the patch does, not the problem being solved is. > > i.e. This doesn't tell the reader why the delta can be zero in these > places, nor does it tell them what the impact of it being zero is. > We can't use this information to identify a system that is having > problems due to this issue because they havent' been described. > > Hence when I ask for more detail about how something occurs, what I'm > asking for is a description of the how the problem was found, what > the impact of the problem has on systems, how the problem is > reproduced, etc. > > Something led you to finding this problem - tell us the story so we > also know what you know and so can understand why the change needs > to be made. A good commit description tells the reader everything > you know about the problem that needs to be fixed, the code change > itself will then describe how the problem was fixed... > > Cheers, > > Dave. > -- > Dave Chinner > david@fromorbit.com Thanks for your suggestion. I will try to rephrase the description. Cheers, Stephen.