diff options
author | 2021-08-06 11:05:42 -0700 | |
---|---|---|
committer | 2021-08-09 10:52:19 -0700 | |
commit | 6f6490914d9b712004ddad648e47b1bf22647978 (patch) | |
tree | 08c5cfeaa4701b2e4d9efdce14faccb4ffdd5687 /fs/xfs/xfs_trace.h | |
parent | xfs: flush inode inactivation work when compiling usage statistics (diff) | |
download | linux-6f6490914d9b712004ddad648e47b1bf22647978.tar.gz linux-6f6490914d9b712004ddad648e47b1bf22647978.tar.bz2 linux-6f6490914d9b712004ddad648e47b1bf22647978.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_trace.h')
-rw-r--r-- | fs/xfs/xfs_trace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h index cd56ac7c39a6..3440046facc7 100644 --- a/fs/xfs/xfs_trace.h +++ b/fs/xfs/xfs_trace.h @@ -195,6 +195,9 @@ DEFINE_FS_EVENT(xfs_inodegc_worker); DEFINE_FS_EVENT(xfs_inodegc_queue); DEFINE_FS_EVENT(xfs_inodegc_throttle); DEFINE_FS_EVENT(xfs_fs_sync_fs); +DEFINE_FS_EVENT(xfs_blockgc_start); +DEFINE_FS_EVENT(xfs_blockgc_stop); +DEFINE_FS_EVENT(xfs_blockgc_worker); DECLARE_EVENT_CLASS(xfs_ag_class, TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno), |