]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: don't run speculative preallocation gc when fs is frozen
authorDarrick J. Wong <djwong@kernel.org>
Fri, 6 Aug 2021 18:05:42 +0000 (11:05 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 9 Aug 2021 17:52:19 +0000 (10:52 -0700)
commit2c1a49242eedef5067a701ef487529f5fa0156cd
tree08c5cfeaa4701b2e4d9efdce14faccb4ffdd5687
parent34e6f01b0e9b02b708dff0088bb1fef5ed586b1e
xfs: don't run speculative preallocation gc when fs is frozen

Now that we have the infrastructure to switch background workers on and
off at will, fix the block gc worker code so that we don't actually run
the worker when the filesystem is frozen, same as we do for deferred
inactivation.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/common.c
fs/xfs/xfs_icache.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_super.c
fs/xfs/xfs_trace.h