quota: Properly return errors from dquot_writeback_dquots()
Due to a switched left and right side of an assignment, dquot_writeback_dquots() never returned error. This could result in errors during quota writeback to not be reported to userspace properly. Fix it. CC: stable@vger.kernel.org Coverity-id: 1226884 Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
7938db449b
commit
474d2605d1
@ -634,7 +634,7 @@ int dquot_writeback_dquots(struct super_block *sb, int type)
|
||||
dqstats_inc(DQST_LOOKUPS);
|
||||
err = sb->dq_op->write_dquot(dquot);
|
||||
if (!ret && err)
|
||||
err = ret;
|
||||
ret = err;
|
||||
dqput(dquot);
|
||||
spin_lock(&dq_list_lock);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user