]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4845556a78bc7dd1f358de7ba3cbe0f055bf7c6
treefb8953d4cecda5db719510523aff39f53f3cf541
parent87ebe973a6a5dfbeef7eb7ebe3e7569697fa726d
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