aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-11-01 00:27:18 -0400
committerBen Myers <bpm@sgi.com>2013-11-06 13:41:51 -0500
commit750b9c90668b173a92b20e747b9736b8537eda5a (patch)
tree2927a0bd0072fc35c2436e62d4f720ea381bc5fa /fs/xfs/xfs_log.c
parent273203699f82667296e1f14344c5a5a6c4600470 (diff)
xfs: trace AIL manipulations
I debugging a log tail issue on a RHEL6 kernel, I added these trace points to trace log items being added, moved and removed in the AIL and how that affected the log tail LSN that was written to the log. They were very helpful in that they immediately identified the cause of the problem being seen. Hence I'd like to always have them available for use. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r--fs/xfs/xfs_log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index 49dd41e6a2dc..8497a00e399d 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1076,6 +1076,7 @@ xlog_assign_tail_lsn_locked(
1076 tail_lsn = lip->li_lsn; 1076 tail_lsn = lip->li_lsn;
1077 else 1077 else
1078 tail_lsn = atomic64_read(&log->l_last_sync_lsn); 1078 tail_lsn = atomic64_read(&log->l_last_sync_lsn);
1079 trace_xfs_log_assign_tail_lsn(log, tail_lsn);
1079 atomic64_set(&log->l_tail_lsn, tail_lsn); 1080 atomic64_set(&log->l_tail_lsn, tail_lsn);
1080 return tail_lsn; 1081 return tail_lsn;
1081} 1082}