提交 5b0ad7c2 编写于 作者: B Brian Foster 提交者: Darrick J. Wong

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: NBrian Foster <bfoster@redhat.com>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: NDarrick J. Wong <djwong@kernel.org>
Signed-off-by: NDarrick J. Wong <djwong@kernel.org>
Reviewed-by: NAllison Henderson <allison.henderson@oracle.com>
上级 ea2064da
...@@ -889,8 +889,7 @@ xfs_fs_freeze( ...@@ -889,8 +889,7 @@ xfs_fs_freeze(
flags = memalloc_nofs_save(); flags = memalloc_nofs_save();
xfs_stop_block_reaping(mp); xfs_stop_block_reaping(mp);
xfs_save_resvblks(mp); xfs_save_resvblks(mp);
xfs_log_clean(mp); ret = xfs_log_quiesce(mp);
ret = xfs_sync_sb(mp, true);
memalloc_nofs_restore(flags); memalloc_nofs_restore(flags);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册