From: Linus Torvalds Date: Sat, 5 Feb 2022 17:13:51 +0000 (-0800) Subject: Merge tag 'vfs-5.17-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux X-Git-Tag: v5.17-rc3~10 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=ea7b3e6d42d7afa141ff765099d6b4ea406001bc;p=sfrench%2Fcifs-2.6.git Merge tag 'vfs-5.17-fixes-2' of git://git./fs/xfs/xfs-linux Pull vfs fixes from Darrick Wong: "I was auditing the sync_fs code paths recently and noticed that most callers of ->sync_fs ignore its return value (and many implementations never return nonzero even if the fs is broken!), which means that internal fs errors and corruption are not passed up to userspace callers of syncfs(2) or FIFREEZE. Hence fixing the common code and XFS, and I'll start working on the ext4/btrfs folks if this is merged. Summary: - Fix a bug where callers of ->sync_fs (e.g. sync_filesystem and syncfs(2)) ignore the return value. - Fix a bug where callers of sync_filesystem (e.g. fs freeze) ignore the return value. - Fix a bug in XFS where xfs_fs_sync_fs never passed back error returns" * tag 'vfs-5.17-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: xfs: return errors in xfs_fs_sync_fs quota: make dquot_quota_sync return errors from ->sync_fs vfs: make sync_filesystem return errors from ->sync_fs vfs: make freeze_super abort when sync_filesystem returns error --- ea7b3e6d42d7afa141ff765099d6b4ea406001bc