Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1784639yba; Thu, 25 Apr 2019 05:47:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxI3cmYgqiUzbM5IwKm+G2X5Vj87s2UMuvsYmwc7tyk2Xs6MOrtlbUr4Ie30zezFxhZH9IS X-Received: by 2002:a17:902:864b:: with SMTP id y11mr36886926plt.1.1556196474929; Thu, 25 Apr 2019 05:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556196474; cv=none; d=google.com; s=arc-20160816; b=mCqMr7wv5D0xOros6iA/G3Q8StV16J/4KZB/Vgrx2LJj1xuU0qVK6FlZ+8XrjHrcNw qEuKWf2AwVKx4ZL/IzZa8G+vWHauWqat5FcGajhYhK9TKPncW8goFCMbdW2ilyE8H7pP ueMcVPTBlJK7XLptAtAEU00OsuP5iI8lLn8fv3mrtitXKHsNIcg1ktt43RShN2/HBB2f m65Bi4Fa7ZQl5mkkO7qXFBRhkKRsffKCLBxWUIz1ktAgTlCMfY/OVrSH9SLhHm/AgadQ 9s+OUBeP1sPBAQJSKfX9hN65lV6lJFwr5D/nyTP6uioRc5eMQ2/RiKmXgMhrCMYF7qWV 7c4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Gp6CpMo9kGGmzn8estak7IAjofeY9gpUNJ697B/ddSg=; b=RtCyMWroHimA1QlXLaUe/GWHFYgJF3p7YN+f7ehsicAt0cvLILYYCh65SS6UJaHqV4 plATbp2VTe9bAv1m/d8XHzAkavyQ7Jmpos+9YvP/UGQIsTX51/qQIyAM8ts97lDmiY8r DP5gsEl+H5xh4458dK/V/DKDQri3kr54GLJaJTVMJTJFZhFNfnJjFAV7r/lvd664sKhW pKB3N9hK+y2kqb/DFc1G4inQj/dHrJpHF6/uV+71kwwfe64ZMBM8vt+CRpcWUFjY81hK Lm0b/ERzVkCYTrbp0vUGCt2hEoSwov8Ihvbkr8PfXq/vnDSJTYOU6/kWoDVvNg31X26C q6Vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k123si22164666pfc.285.2019.04.25.05.47.40; Thu, 25 Apr 2019 05:47:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387409AbfDYJ77 (ORCPT + 99 others); Thu, 25 Apr 2019 05:59:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:34206 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729329AbfDYJ75 (ORCPT ); Thu, 25 Apr 2019 05:59:57 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CCEC0AEDB; Thu, 25 Apr 2019 09:59:55 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 59B971E15BE; Thu, 25 Apr 2019 11:59:55 +0200 (CEST) Date: Thu, 25 Apr 2019 11:59:55 +0200 From: Jan Kara To: Chengguang Xu Cc: jack@suse.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] quota: fix wrong indentation Message-ID: <20190425095955.GA23471@quack2.suse.cz> References: <20190419054601.23752-1-cgxu519@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190419054601.23752-1-cgxu519@gmx.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 19-04-19 13:46:01, Chengguang Xu wrote: > We need to check return code only when calling ->read_dqblk(), > so fix it properly. > > Signed-off-by: Chengguang Xu Thanks. Added to my tree. Honza > --- > fs/quota/dquot.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c > index fc20e06c56ba..934b8f3f9e57 100644 > --- a/fs/quota/dquot.c > +++ b/fs/quota/dquot.c > @@ -424,10 +424,11 @@ int dquot_acquire(struct dquot *dquot) > struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); > > mutex_lock(&dquot->dq_lock); > - if (!test_bit(DQ_READ_B, &dquot->dq_flags)) > + if (!test_bit(DQ_READ_B, &dquot->dq_flags)) { > ret = dqopt->ops[dquot->dq_id.type]->read_dqblk(dquot); > - if (ret < 0) > - goto out_iolock; > + if (ret < 0) > + goto out_iolock; > + } > /* Make sure flags update is visible after dquot has been filled */ > smp_mb__before_atomic(); > set_bit(DQ_READ_B, &dquot->dq_flags); > -- > 2.20.1 > > -- Jan Kara SUSE Labs, CR