diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-08-11 02:00:54 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-19 03:46:00 +0200 |
commit | 7f89c838396e2e5b484dd59cdd59eb990a79fd9a (patch) | |
tree | 0aa8b83f4654376497f0117e0a31c3d4be7b77c0 /fs/xfs/xfs_fsops.c | |
parent | xfs: remove unnecessary agno variable from struct xchk_ag (diff) | |
download | linux-7f89c838396e2e5b484dd59cdd59eb990a79fd9a.tar.xz linux-7f89c838396e2e5b484dd59cdd59eb990a79fd9a.zip |
xfs: add trace point for fs shutdown
Add a tracepoint for fs shutdowns so we can capture that in ftrace
output.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_fsops.c')
-rw-r--r-- | fs/xfs/xfs_fsops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 7a2f4feacc35..0ef0aad7ddc9 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c @@ -19,6 +19,7 @@ #include "xfs_log.h" #include "xfs_ag.h" #include "xfs_ag_resv.h" +#include "xfs_trace.h" /* * Write new AG headers to disk. Non-transactional, but need to be @@ -551,6 +552,8 @@ xfs_do_force_shutdown( why = "Metadata I/O Error"; } + trace_xfs_force_shutdown(mp, tag, flags, fname, lnnum); + xfs_alert_tag(mp, tag, "%s (0x%x) detected at %pS (%s:%d). Shutting down filesystem.", why, flags, __return_address, fname, lnnum); |