]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: cover the log on freeze instead of cleaning it
authorBrian Foster <bfoster@redhat.com>
Sat, 23 Jan 2021 00:48:24 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:54:52 +0000 (16:54 -0800)
commit95207ddfa58fe1d51ceb639dc8992de3a069dc37
tree1f0d52f6f0277dbc790c1d14156779d85d41e223
parent54ba47de11bfa8ea2f4cf04640763c6aa6a5e4f9
xfs: cover the log on freeze instead of cleaning it

Filesystem freeze cleans the log and immediately redirties it so log
recovery runs if a crash occurs after the filesystem is frozen. Now
that log quiesce covers the log, there is no need to clean the log and
redirty it to trigger log recovery because covering has the same
effect. Update xfs_fs_freeze() to quiesce (and thus cover) the log.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
fs/xfs/xfs_super.c