]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
quota: fix wrong indentation
authorChengguang Xu <cgxu519@gmx.com>
Fri, 19 Apr 2019 05:46:01 +0000 (13:46 +0800)
committerJan Kara <jack@suse.cz>
Thu, 25 Apr 2019 09:59:35 +0000 (11:59 +0200)
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>
fs/quota/dquot.c

index cfbf91e61ea42751cba7139796ed174f2db2cf1e..d2f2972b33db83bf62f5b9275f09bea72eee26f6 100644 (file)
@@ -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);