diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2019-04-19 13:46:01 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-04-25 11:59:35 +0200 |
commit | 3ef177ec9d5dc225bf30927a2d222d8bb1fbee0f (patch) | |
tree | e8cf683728da087bce2ca41a5b42b0e2fd059a86 /fs/quota | |
parent | 39416c5872db69859e867fa250b9cbb3f1e0d185 (diff) | |
download | linux-3ef177ec9d5dc225bf30927a2d222d8bb1fbee0f.tar.gz linux-3ef177ec9d5dc225bf30927a2d222d8bb1fbee0f.tar.bz2 linux-3ef177ec9d5dc225bf30927a2d222d8bb1fbee0f.zip |
quota: fix wrong indentation
We need to check return code only when calling ->read_dqblk(),
so fix it properly.
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota')
-rw-r--r-- | fs/quota/dquot.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index cfbf91e61ea4..d2f2972b33db 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); |