quota: Propagate ->quota_read errors from v2_read_file_info()
authorJan Kara <jack@suse.cz>
Thu, 17 Aug 2017 17:20:28 +0000 (19:20 +0200)
committerJan Kara <jack@suse.cz>
Thu, 17 Aug 2017 17:20:28 +0000 (19:20 +0200)
commitf98bbe37ae96873ce93f36f4cdc7b47d85cc4455
tree129500e998d7b2dc7e847005b91dac865b6be580
parentcb8d01b4f624bbf34fd82cbca19e34a22d1eeef6
quota: Propagate ->quota_read errors from v2_read_file_info()

Currently we return -EIO on any error (or short read) from
->quota_read() while reading quota info. Propagate the error code
instead.

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