diff options
| author | Dave Chinner <dchinner@redhat.com> | 2025-06-26 08:48:57 +1000 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2025-06-27 14:14:37 +0200 |
| commit | fc48627b9c22f4d18651ca72ba171952d7a26004 (patch) | |
| tree | 4b62e88c5c7ff349f0f233fb405774080e09a3ea /fs/xfs/xfs_trans.c | |
| parent | d62016b1a2df24c8608fe83cd3ae8090412881b3 (diff) | |
xfs: add tracepoints for stale pinned inode state debug
I needed more insight into how stale inodes were getting stuck on
the AIL after a forced shutdown when running fsstress. These are the
tracepoints I added for that purpose.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_trans.c')
| -rw-r--r-- | fs/xfs/xfs_trans.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index c6657072361a..b4a07af513ba 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c @@ -742,8 +742,10 @@ xfs_trans_free_items( list_for_each_entry_safe(lip, next, &tp->t_items, li_trans) { xfs_trans_del_item(lip); - if (abort) + if (abort) { + trace_xfs_trans_free_abort(lip); set_bit(XFS_LI_ABORTED, &lip->li_flags); + } if (lip->li_ops->iop_release) lip->li_ops->iop_release(lip); } |