]> www.infradead.org Git - users/willy/xarray.git/commit
quota: fixup *_write_file_info() to return proper error code
authorYangtao Li <frank.li@vivo.com>
Mon, 27 Feb 2023 12:02:15 +0000 (20:02 +0800)
committerJan Kara <jack@suse.cz>
Mon, 20 Mar 2023 16:27:42 +0000 (17:27 +0100)
commitf8107c996f5419a5b964b9796d736c7b81f099a0
tree33a5add146e2d2a5eb66c92e19fe57268508269b
parentdced733d7fa9386f7c96bbf7721360472c0aed47
quota: fixup *_write_file_info() to return proper error code

For v1_write_file_info function, when quota_write() returns 0,
it should be considered an EIO error. And for v2_write_file_info(),
fix to proper error return code instead of raw number.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20230227120216.31306-1-frank.li@vivo.com>
fs/quota/quota_v1.c
fs/quota/quota_v2.c