xfs: lift writable fs check up into log worker task
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:50 +0000 (16:54 -0800)
commit37444fc4cc398266fe0f71a9c0925620d44fb76a
treefb8953d4cecda5db719510523aff39f53f3cf541
parent50d25484bebe94320c49dd1347d3330c7063bbdb
xfs: lift writable fs check up into log worker task

The log covering helper checks whether the filesystem is writable to
determine whether to cover the log. The helper is currently only
called from the background log worker. In preparation to reuse the
helper from freezing contexts, lift the check into xfs_log_worker().

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@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