quota: make dquot_quota_sync return errors from ->sync_fs
authorDarrick J. Wong <djwong@kernel.org>
Sun, 30 Jan 2022 16:53:16 +0000 (08:53 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:03:06 +0000 (12:03 +0100)
commit64d6f76958c5b1ce559d29c60a9494363922a576
treefec931662401331400c37146e28b54a9fe96453d
parent38f22c730c382b90ee20b5a0a6082dbf2643acf4
quota: make dquot_quota_sync return errors from ->sync_fs

[ Upstream commit dd5532a4994bfda0386eb2286ec00758cee08444 ]

Strangely, dquot_quota_sync ignores the return code from the ->sync_fs
call, which means that quotacalls like Q_SYNC never see the error.  This
doesn't seem right, so fix that.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/quota/dquot.c