Skip to content

Commit

Permalink
quota: correct error number in free_dqentry()
Browse files Browse the repository at this point in the history
Fix the error path in free_dqentry(), pass out the error number if the
block to free is not correct.

Fixes: 1ccd14b ("quota: Split off quota tree handling into a separate file")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Zhang Yi <[email protected]>
Cc: [email protected]
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
zhangyi089 authored and jankara committed Oct 11, 2021
1 parent 9bf3d20 commit d0e36a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/quota/quota_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ static int free_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot,
quota_error(dquot->dq_sb, "Quota structure has offset to "
"other block (%u) than it should (%u)", blk,
(uint)(dquot->dq_off >> info->dqi_blocksize_bits));
ret = -EIO;
goto out_buf;
}
ret = read_blk(info, blk, buf);
Expand Down

0 comments on commit d0e36a6

Please sign in to comment.