Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2112518yba; Fri, 19 Apr 2019 12:21:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwTZBUjBmeF2BH2pOaz8V4KJDGVqZMYv2+y4OyrHTWzOuaQJAHkS4rPGhBUCG5XxM43Vco X-Received: by 2002:a17:902:e01:: with SMTP id 1mr5674083plw.128.1555701694649; Fri, 19 Apr 2019 12:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555701694; cv=none; d=google.com; s=arc-20160816; b=WDoTO0lvDa7nCgTn6Bl62r4gghDHiUv4C6KYRVgg94sXAL/a225Zxpmq+wRBQngk+I ixVp9JsamKd/Yr1VsNTuiUSZhAdgwDkX56VadTai/zsyqmBuvlKcqbSWRChi5K/OgTg7 /DuyztII1XFnYiluxJSDTu4gbD+tG6WPZDFrYikxqBm0uoOIlVkMw2J42RU1KkQEJ0BQ AlpeVqP3Jeb9Wp13QXS58AzAojJ0NZB+Xj6pVgaANEse6Uwg7y/keBpMyxKRs4qD9Cug odujqDe3Rdh5Q4zGvYHcNDV90ztD9ynYmomUCMxBz3RFQGg1aRsbMRqq3j5SCxp5RznZ rfzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LvnJk3EY6yDvMW31q/uFKGiO7Leiu8gYGiuGmpGIEFk=; b=slOxnW3MBX1VJ5w2SQbkoDeJP8yLJ7iiDoIhX03o6TE5EbipEZJpSLyangJzjLTSod Cki3/0jIf6smCKBlBGlEDvISBkR8lDL9YfZH2uS98OXjBcwsFXgj+Am7w0b010MR6d4m ebJLwD75mspbo1HTRUlBtVgIbWOF27l2jj8yDLIcW4068mR1THDPYjeY0owdEug39/M2 G1JfqzxboIb1GyBV01u1sIGScP190FmhyHKW9m63mWqB9kjBv2TZP3+vT/w6WFq4bXyx 7zkXZrp5yHGb5600Uvm9fm+5d63F8tP5edWRauCsYFAlzp3YY6RfwJcqaNHBhm9TJWwQ 64tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dkLpU809; 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 m3si5443786pgv.28.2019.04.19.12.21.19; Fri, 19 Apr 2019 12:21:34 -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; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dkLpU809; 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 S1727419AbfDSTTw (ORCPT + 99 others); Fri, 19 Apr 2019 15:19:52 -0400 Received: from mout.gmx.net ([212.227.15.18]:38343 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727366AbfDSTTv (ORCPT ); Fri, 19 Apr 2019 15:19:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555701589; bh=GmNNCdHbkeV6zf8uwKLg/xSRBB4uJcYIZU7MFYK2afw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=dkLpU809Sg0uChEbM/8PkhzYIuVxaMqPMUVKAjaU6+YHyLWBCRE5IBABRrhuKotu1 QN29z5FeG8WllIl1Xu2v9g9uYO/0G0yv7P7tFozDGRfdMW1Tp09cDuwkZD3o4kAx/K tqVb1H5K6bAoIEJxHFYXipuWVTcuRrgTdB4fHA4A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([218.18.229.179]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0M3RVA-1gzpRI1MA4-00r0XG; Fri, 19 Apr 2019 07:46:41 +0200 From: Chengguang Xu To: jack@suse.com Cc: linux-kernel@vger.kernel.org, Chengguang Xu Subject: [PATCH] quota: fix wrong indentation Date: Fri, 19 Apr 2019 13:46:01 +0800 Message-Id: <20190419054601.23752-1-cgxu519@gmx.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:mVtvSSF0rN2zTbXxsHfodvbd7Oy16JhECRItuhQI6IlO3Rr5Z++ IHOnXraRy4uNL3N9hz5dZ0VOd7LTUy4yECRVeb8S1vVnMG6jkvviFWRrerOLEceZfz3IG+1 2y8AHPZg/0V1UhrzRk6cI/Zny2R/C72XN0BswV1cGXg+UOs0Rg/tKhrd1B1ek2lhs/qkfcW ZIZPwGnpbPTXMKPYGelbA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Q5LOzcGC2xs=:LZmkhYE4OAsvT4CvO4gw3N SHqF3gpl1uT81WAQprIXQNePn2owjm0MInxEoKq0fUnyegiog437EJwVPDUIn4qdfEOuRibCB wTT9ezCd+T7nSxaBIeXpNoHVt8mrvuu0T5yobQtmosgAN0f3AghbKSCviYMvA78XrcBijRfUi rmq0r4K8mmOFk5RuWAdDy8qTIK5Ek50Zr4+Vu/In6Ri5WnlpwpTtyxIvAD+i36769jeISx2Z7 nSVyU0qcALODS9XsiuSrKvcWNqEz0UBaayi0Sro8fhXnpazX6dRSELduKkSZNaQfTZ37mTLyK nd8pnPS2jCJz90ICZyU+R91GL8ifsACNdnppRcZFwoVH/bSfjTXyRJHBcVLPSSU4SnX/CpECy s6Z9Bb7Qr6QJIIqDfNi09Nbtelagfz2PElKY2wHV4wUwo8VRGkJTWBJd82sDRNbBZxQv9uU6M MuZ1v0Eq+OoeSuPqVyy71L4Nc77q3lxkRd7TxHwmrnh81M/wbxx5iEt+sBgupRwYB39hU4xzS qRoWuIpVj8F2/UjT2D3BNyJsbrBjyycsAPOJOkkVgPqDenuMmRkYEzt/bhLoWlOBMRsXaiVE+ 2XdkgS01zG9PPSlUG6q6VQM8TgwvtBoeEicMlxFnVy0z5n5z31L5xavWNVGis5R1hJtZhrp0w /mJJ8VkmZlwZto/KJL27jaBeGqhMWbiSQaikhR+doRK2ia7KXXdYh0h2j9EFplWe7OebQpbXA M71vh2TOYAfqAS9JJIUybqoT8akjqsWekb3D2/kevtovBhQxU1T3rZVFYqE19QDNb5+q9DGaL fDxb7mWJYtXWVQBAB6ek8x8Bn5qILfihQMoB/quPts4XnyAmoGfYSq/VfCf6bhMlHWtUNXIqd oMsEn5dD1LDUw35txzncBBgmnFtPlwNq8+aCBZLiwUxMRQk0APO1aas1F+6eJC Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need to check return code only when calling ->read_dqblk(), so fix it properly. Signed-off-by: Chengguang Xu =2D-- 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 =2D-- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -424,10 +424,11 @@ int dquot_acquire(struct dquot *dquot) struct quota_info *dqopt =3D 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 =3D 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); =2D- 2.20.1