]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: only bother with sync_filesystem during readonly remount
authorDarrick J. Wong <djwong@kernel.org>
Thu, 3 Feb 2022 16:29:21 +0000 (08:29 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 10 Feb 2022 05:07:24 +0000 (21:07 -0800)
commite3be21a1fc32a356541cb0103a59a83c572e997c
tree231beccc5ac2a13adf75ed5811742640457e677f
parent42ec8f292d80181e82f6da18f2ae37c0513edfd8
xfs: only bother with sync_filesystem during readonly remount

In commit 0c272d454988, we pushed a sync_filesystem() call from the VFS
into xfs_fs_remount.  The only time that we ever need to push dirty file
data or metadata to disk for a remount is if we're remounting the
filesystem read only, so this really could be moved to xfs_remount_ro.

Once we've moved the call site, actually check the return value from
sync_filesystem.

Fixes: 0c272d454988 ("fs: push sync_filesystem() down to the file system's remount_fs()")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_super.c