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.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 7C15AC43331 for ; Fri, 27 Mar 2020 09:04:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 520B720716 for ; Fri, 27 Mar 2020 09:04:29 +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="ObjoWI9J" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726002AbgC0JE2 (ORCPT ); Fri, 27 Mar 2020 05:04:28 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42500 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbgC0JE2 (ORCPT ); Fri, 27 Mar 2020 05:04:28 -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=GmwokC6P2VtAWWVA4BKsM5ZZ4DiX3Tx0OxtG1VkDpFA=; b=ObjoWI9Jbmp0U6ZCaG7NwMRWL9 CL1Ur2zXNDLfWQlSfCWKA918kFq0sCNnwRBPeNv/+QmuTu/WO3tlwVb9K8xWEyzpSGsgnOWqfQfIa ioN1068SNyOz82epQKy3rjV/4+dfYjKGW0h3spanv3hoq2ir+0lAXzqJ5+0SJzvpq4B+xxK9tbDQj rvfzvdxp6VooxHqR6ZES2F8vDDZVCzzOhNjtIRxLXLXXR9mvHxmyR2LPW+JC5zQEUpLPHBM8mYllc qcRNkpW/GrJ2Ak1jiLAN5et6I0adt48q3RRtbsspkCbp8RATF96str9LcFj05aYtT+lvcXkXKU2EL IyFZ5aaQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHkuW-0003hd-SF; Fri, 27 Mar 2020 09:04:16 +0000 Date: Fri, 27 Mar 2020 02:04:16 -0700 From: Christoph Hellwig To: xiakaixu1987@gmail.com Cc: linux-xfs@vger.kernel.org, darrick.wong@oracle.com, Kaixu Xia Subject: Re: [PATCH] xfs: remove unnecessary judgment from xfs_create Message-ID: <20200327090416.GA14052@infradead.org> References: <1585287956-2808-1-git-send-email-kaixuxia@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1585287956-2808-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 Fri, Mar 27, 2020 at 01:45:56PM +0800, xiakaixu1987@gmail.com wrote: > From: Kaixu Xia > > Since the "no-allocation" reservations for file creations has > been removed, the resblks value should be larger than zero, so > remove unnecessary judgment. The patch looks good: Reviewed-by: Christoph Hellwig Although I would replace "judgement" with "condition" in the commit log.