diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-10-11 11:14:11 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-10-18 16:12:04 -0400 |
commit | 9e4c109ac822395e0aae650e4e3c9e4903f6602f (patch) | |
tree | c59e7fabd8a43e6d3392045760653cbfeb5cd6e3 /fs/xfs/xfs_trans_ail.c | |
parent | 2900b33999e2fc8a8edf0dddaafffec4da25ee10 (diff) |
xfs: add AIL pushing tracepoints
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_trans_ail.c')
-rw-r--r-- | fs/xfs/xfs_trans_ail.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trans_ail.c b/fs/xfs/xfs_trans_ail.c index 4e3f9bbe0141..ed9252bcdac9 100644 --- a/fs/xfs/xfs_trans_ail.c +++ b/fs/xfs/xfs_trans_ail.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "xfs_ag.h" | 26 | #include "xfs_ag.h" |
27 | #include "xfs_mount.h" | 27 | #include "xfs_mount.h" |
28 | #include "xfs_trans_priv.h" | 28 | #include "xfs_trans_priv.h" |
29 | #include "xfs_trace.h" | ||
29 | #include "xfs_error.h" | 30 | #include "xfs_error.h" |
30 | 31 | ||
31 | #ifdef DEBUG | 32 | #ifdef DEBUG |
@@ -425,14 +426,18 @@ xfsaild_push( | |||
425 | switch (lock_result) { | 426 | switch (lock_result) { |
426 | case XFS_ITEM_SUCCESS: | 427 | case XFS_ITEM_SUCCESS: |
427 | XFS_STATS_INC(xs_push_ail_success); | 428 | XFS_STATS_INC(xs_push_ail_success); |
429 | trace_xfs_ail_push(lip); | ||
430 | |||
428 | IOP_PUSH(lip); | 431 | IOP_PUSH(lip); |
429 | ailp->xa_last_pushed_lsn = lsn; | 432 | ailp->xa_last_pushed_lsn = lsn; |
430 | break; | 433 | break; |
431 | 434 | ||
432 | case XFS_ITEM_PUSHBUF: | 435 | case XFS_ITEM_PUSHBUF: |
433 | XFS_STATS_INC(xs_push_ail_pushbuf); | 436 | XFS_STATS_INC(xs_push_ail_pushbuf); |
437 | trace_xfs_ail_pushbuf(lip); | ||
434 | 438 | ||
435 | if (!IOP_PUSHBUF(lip)) { | 439 | if (!IOP_PUSHBUF(lip)) { |
440 | trace_xfs_ail_pushbuf_pinned(lip); | ||
436 | stuck++; | 441 | stuck++; |
437 | ailp->xa_log_flush++; | 442 | ailp->xa_log_flush++; |
438 | } else { | 443 | } else { |
@@ -443,12 +448,15 @@ xfsaild_push( | |||
443 | 448 | ||
444 | case XFS_ITEM_PINNED: | 449 | case XFS_ITEM_PINNED: |
445 | XFS_STATS_INC(xs_push_ail_pinned); | 450 | XFS_STATS_INC(xs_push_ail_pinned); |
451 | trace_xfs_ail_pinned(lip); | ||
452 | |||
446 | stuck++; | 453 | stuck++; |
447 | ailp->xa_log_flush++; | 454 | ailp->xa_log_flush++; |
448 | break; | 455 | break; |
449 | 456 | ||
450 | case XFS_ITEM_LOCKED: | 457 | case XFS_ITEM_LOCKED: |
451 | XFS_STATS_INC(xs_push_ail_locked); | 458 | XFS_STATS_INC(xs_push_ail_locked); |
459 | trace_xfs_ail_locked(lip); | ||
452 | stuck++; | 460 | stuck++; |
453 | break; | 461 | break; |
454 | 462 | ||