Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3587074iog; Tue, 21 Jun 2022 01:40:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1siioQ2C+gi6NgzEabbFA41Np1LceUCHvZvaAPGNtXWHybGTF6D9bLA4iMtYQR2WC7uQ7a1 X-Received: by 2002:a17:906:7786:b0:712:3c92:4335 with SMTP id s6-20020a170906778600b007123c924335mr24157595ejm.610.1655800802913; Tue, 21 Jun 2022 01:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655800802; cv=none; d=google.com; s=arc-20160816; b=c2XR4otQt1D7900rKEyvkn0DdSvPk9Qw8VShHD5Zcmv6C6k5IwzI7gBodpRuhB1wyp srBaiBy52qRSC3OX92Aym6uArIafhCSKnCITTLP8qebCVRNVGOq1osRsJ8ZkhsmQ+NHX UUYq/WX4fAk+zjmQI4a5s80+Vd3EDd3MVd5FwXO7vpqP4spF4GgqvlXJBk331gLv/QPT ik5qbHipcdOusaqXA7QBezUuq/iV5pW8rfXtw+55QefNLZY0gudjJMeQa8EOBw/HqDMC eyNybAHaC71WgQzS+c5TzkPoTsOmbrVrcf6+IAR7Na4feTZHL9BuvsIxnJQqK7b9DNbT MTGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=CrMbCPjb+LoWyUC3mBrzbt+ZIqgJunrh/J3SY73im3k=; b=fTFOvAtB3iQx1wjkU2ACvgKvfc+Gw1yCmunIaQC7r4BTI6R3axvXxE0seynZH9mVz0 FYUGVHd4R1rbEF07nvay8SGu2UAp6FA5jtv8PSmBO4g7XZDhew8j/YLe+XAjjHKnL5Uo 4fIBn+N9lZMz8RXNMF8o4ySlRAKA0PswIwUEhaOxtN36LYWT9ak+kyaIYaVXz+V8ayyu GDd/e2I+fsXyaZpgjHkoocHmqDH4plFzn9f25az0YSBpgzCO4WHAjIOYwzchG6yyNv7X 8gzhJUvGkmVMaDIg4P6fVUF5wfqwXQ3P7PO0+YB5HXulTFDVvg0idoz7xANJaL8/PksI 1TuA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gl20-20020a170906e0d400b006f3c442e22fsi14696815ejb.361.2022.06.21.01.39.37; Tue, 21 Jun 2022 01:40:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347707AbiFUHkV (ORCPT + 99 others); Tue, 21 Jun 2022 03:40:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347701AbiFUHjr (ORCPT ); Tue, 21 Jun 2022 03:39:47 -0400 Received: from mail105.syd.optusnet.com.au (mail105.syd.optusnet.com.au [211.29.132.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 75CE911440; Tue, 21 Jun 2022 00:39:46 -0700 (PDT) Received: from dread.disaster.area (pa49-181-2-147.pa.nsw.optusnet.com.au [49.181.2.147]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id EFE6010E7E86; Tue, 21 Jun 2022 17:39:44 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1o3YUB-009E86-8e; Tue, 21 Jun 2022 17:39:43 +1000 Date: Tue, 21 Jun 2022 17:39:43 +1000 From: Dave Chinner To: Shida Zhang Cc: djwong@kernel.org, dchinner@redhat.com, zhangshida@kylinos.cn, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH v2] xfs: add check before calling xfs_mod_fdblocks Message-ID: <20220621073943.GQ227878@dread.disaster.area> References: <20220621070224.1231039-1-zhangshida@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220621070224.1231039-1-zhangshida@kylinos.cn> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.4 cv=OJNEYQWB c=1 sm=1 tr=0 ts=62b175c1 a=ivVLWpVy4j68lT4lJFbQgw==:117 a=ivVLWpVy4j68lT4lJFbQgw==:17 a=kj9zAlcOel0A:10 a=JPEYwPQDsx4A:10 a=7-415B0cAAAA:8 a=scJOnP1jaRTltI4sJEwA:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,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 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