mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-18 11:54:37 +08:00
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>
This commit is contained in:
parent
39416c5872
commit
3ef177ec9d
@ -424,10 +424,11 @@ int dquot_acquire(struct dquot *dquot)
|
|||||||
struct quota_info *dqopt = sb_dqopt(dquot->dq_sb);
|
struct quota_info *dqopt = sb_dqopt(dquot->dq_sb);
|
||||||
|
|
||||||
mutex_lock(&dquot->dq_lock);
|
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);
|
ret = dqopt->ops[dquot->dq_id.type]->read_dqblk(dquot);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto out_iolock;
|
goto out_iolock;
|
||||||
|
}
|
||||||
/* Make sure flags update is visible after dquot has been filled */
|
/* Make sure flags update is visible after dquot has been filled */
|
||||||
smp_mb__before_atomic();
|
smp_mb__before_atomic();
|
||||||
set_bit(DQ_READ_B, &dquot->dq_flags);
|
set_bit(DQ_READ_B, &dquot->dq_flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user