quota: Fix error codes in v2_read_file_info()
authorJan Kara <jack@suse.cz>
Fri, 9 Jun 2017 07:04:47 +0000 (09:04 +0200)
committerJan Kara <jack@suse.cz>
Thu, 17 Aug 2017 17:18:11 +0000 (19:18 +0200)
commitcb8d01b4f624bbf34fd82cbca19e34a22d1eeef6
tree7ad6c8bef10600d11d938cd65be3aaa26d6db06b
parent42fdb8583d5a7eaf916c7323fce6cb4728f364c4
quota: Fix error codes in v2_read_file_info()

v2_read_file_info() returned -1 instead of proper error codes on error.
Luckily this is not easily visible from userspace as we have called
->check_quota_file shortly before and thus already verified the quota
file is sane. Still set the error codes to proper values.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota_v2.c