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)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 30 Jan 2022 16:59:47 +0000 (08:59 -0800)
commitdd5532a4994bfda0386eb2286ec00758cee08444
tree70a8b83a527545430a10001f87c8ab47716a0dca
parent5679897eb104cec9e99609c3f045a0c20603da4c
quota: make dquot_quota_sync return errors from ->sync_fs

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>
fs/quota/dquot.c