From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1199FC1975A for ; Tue, 17 Mar 2020 18:59:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D1E8C2073E for ; Tue, 17 Mar 2020 18:59:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Br9SuJBS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726550AbgCQS7D (ORCPT ); Tue, 17 Mar 2020 14:59:03 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55220 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbgCQS7D (ORCPT ); Tue, 17 Mar 2020 14:59:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=o1jSNdKh3P5/mg7EfYTph4G29M5hJOPuE7K25pl7G1o=; b=Br9SuJBS0VbRkpiAaG/FAEMWN0 ucpsv1Y93MIa5f+8id5bqNf0kOsecB2SRFRIKxId8r8Mc+cB+S2jAZ9X6no57mlhfQKWd1K0lPoW9 SKJsdkXdvcFcwvQI+Vob0Rr/CY6URmW4XuTtrdpubNqH4KIxrHO5tnBfI1Po6mBBpjM9JSE1yxEbu JoPcvIN9ufmgvERO37NrqjXl9dSJOk/QvfVuA2ZOfOBZ0e1zZy1t4DQ1tmxXb/DJ+3PQg/xVtgsae TnJIPiT1eRAJomd3Jv5myelbaXhwlbfbu7qBwI+SLhYOl03pKG5YiZRzTOjpH1Hq96CG3ViTccsCM VNlwyKsA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEHQL-0001A8-85; Tue, 17 Mar 2020 18:58:45 +0000 Date: Tue, 17 Mar 2020 11:58:45 -0700 From: Christoph Hellwig To: xiakaixu1987@gmail.com Cc: linux-xfs@vger.kernel.org, darrick.wong@oracle.com, Kaixu Xia Subject: Re: [PATCH] xfs: use more suitable method to get the quota limit value Message-ID: <20200317185845.GA4168@infradead.org> References: <1584439170-20993-1-git-send-email-kaixuxia@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1584439170-20993-1-git-send-email-kaixuxia@tencent.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Tue, Mar 17, 2020 at 05:59:30PM +0800, xiakaixu1987@gmail.com wrote: > From: Kaixu Xia > > It is more suitable to use min_not_zero() to get the quota limit > value, means to choose the minimum value not the softlimit firstly. > And the meaning is more clear even though the hardlimit value must > be larger than softlimit value. Suitable seems like a rather overblown word, but the actual change looks fine to me, min_not_zero has grown on me..