]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: separate log cleaning from log quiesce
authorBrian Foster <bfoster@redhat.com>
Sat, 23 Jan 2021 00:48:21 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:54:51 +0000 (16:54 -0800)
commit7aa58f1c0b6ce3e88d03b1f3dbdae5567a6463fc
treee4aa3167c56648acc0c9e5cfdb89dd9de82a03bd
parentd4845556a78bc7dd1f358de7ba3cbe0f055bf7c6
xfs: separate log cleaning from log quiesce

Log quiesce is currently associated with cleaning the log, which is
accomplished by writing an unmount record as the last step of the
quiesce sequence. The quiesce codepath is a bit convoluted in this
regard due to how it is reused from various contexts. In preparation
to create separate log cleaning and log covering interfaces, lift
the write of the unmount record into a new cleaning helper and call
that wherever xfs_log_quiesce() is currently invoked. No functional
changes.

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