quota: make dquot_set_dqinfo return errors from ->write_info
authorYangtao Li <frank.li@vivo.com>
Mon, 27 Feb 2023 12:02:16 +0000 (20:02 +0800)
committerJan Kara <jack@suse.cz>
Mon, 20 Mar 2023 16:27:42 +0000 (17:27 +0100)
commitc87d175d0ae715a1cdd9a315253f3fb410fb0421
treefbc470f9bfbf47b8cd932621212cefbde3ccf0a1
parentf8107c996f5419a5b964b9796d736c7b81f099a0
quota: make dquot_set_dqinfo return errors from ->write_info

dquot_set_dqinfo() ignores the return code from the ->write_info
call, which means that quotacalls like Q_SETINFO never see the error.
This doesn't seem right, so fix that.

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