aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_da_btree.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-11-12 06:53:53 -0500
committerBen Myers <bpm@sgi.com>2012-11-13 15:47:00 -0500
commitee73259b401317117e7f5d4834c270b10b12bc8e (patch)
treef5b78a4c80cb62435965fbcbc7289fd533b83dc9 /fs/xfs/xfs_da_btree.c
parent37eb17e604ac7398bbb133c82f281475d704fff7 (diff)
xfs: add more attribute tree trace points.
Added when debugging recent attribute tree problems to more finely trace code execution through the maze of twisty passages that makes up the attr code. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_da_btree.c')
-rw-r--r--fs/xfs/xfs_da_btree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c
index 7bfb7dd334fc..c62e7e6ff50e 100644
--- a/fs/xfs/xfs_da_btree.c
+++ b/fs/xfs/xfs_da_btree.c
@@ -779,6 +779,8 @@ xfs_da_node_toosmall(xfs_da_state_t *state, int *action)
779 xfs_dablk_t blkno; 779 xfs_dablk_t blkno;
780 struct xfs_buf *bp; 780 struct xfs_buf *bp;
781 781
782 trace_xfs_da_node_toosmall(state->args);
783
782 /* 784 /*
783 * Check for the degenerate case of the block being over 50% full. 785 * Check for the degenerate case of the block being over 50% full.
784 * If so, it's not worth even looking to see if we might be able 786 * If so, it's not worth even looking to see if we might be able
@@ -900,6 +902,8 @@ xfs_da_fixhashpath(xfs_da_state_t *state, xfs_da_state_path_t *path)
900 xfs_dahash_t lasthash=0; 902 xfs_dahash_t lasthash=0;
901 int level, count; 903 int level, count;
902 904
905 trace_xfs_da_fixhashpath(state->args);
906
903 level = path->active-1; 907 level = path->active-1;
904 blk = &path->blk[ level ]; 908 blk = &path->blk[ level ];
905 switch (blk->magic) { 909 switch (blk->magic) {
@@ -1417,6 +1421,8 @@ xfs_da_path_shift(xfs_da_state_t *state, xfs_da_state_path_t *path,
1417 xfs_dablk_t blkno=0; 1421 xfs_dablk_t blkno=0;
1418 int level, error; 1422 int level, error;
1419 1423
1424 trace_xfs_da_path_shift(state->args);
1425
1420 /* 1426 /*
1421 * Roll up the Btree looking for the first block where our 1427 * Roll up the Btree looking for the first block where our
1422 * current index is not at the edge of the block. Note that 1428 * current index is not at the edge of the block. Note that