aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_attr.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_attr.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_attr.c')
-rw-r--r--fs/xfs/xfs_attr.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c
index 0ca1f0be62d2..55bbe98e8f82 100644
--- a/fs/xfs/xfs_attr.c
+++ b/fs/xfs/xfs_attr.c
@@ -1155,6 +1155,8 @@ xfs_attr_leaf_get(xfs_da_args_t *args)
1155 struct xfs_buf *bp; 1155 struct xfs_buf *bp;
1156 int error; 1156 int error;
1157 1157
1158 trace_xfs_attr_leaf_get(args);
1159
1158 args->blkno = 0; 1160 args->blkno = 0;
1159 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp, 1161 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp,
1160 XFS_ATTR_FORK); 1162 XFS_ATTR_FORK);
@@ -1185,6 +1187,8 @@ xfs_attr_leaf_list(xfs_attr_list_context_t *context)
1185 int error; 1187 int error;
1186 struct xfs_buf *bp; 1188 struct xfs_buf *bp;
1187 1189
1190 trace_xfs_attr_leaf_list(context);
1191
1188 context->cursor->blkno = 0; 1192 context->cursor->blkno = 0;
1189 error = xfs_da_read_buf(NULL, context->dp, 0, -1, &bp, XFS_ATTR_FORK); 1193 error = xfs_da_read_buf(NULL, context->dp, 0, -1, &bp, XFS_ATTR_FORK);
1190 if (error) 1194 if (error)
@@ -1653,6 +1657,8 @@ xfs_attr_fillstate(xfs_da_state_t *state)
1653 xfs_da_state_blk_t *blk; 1657 xfs_da_state_blk_t *blk;
1654 int level; 1658 int level;
1655 1659
1660 trace_xfs_attr_fillstate(state->args);
1661
1656 /* 1662 /*
1657 * Roll down the "path" in the state structure, storing the on-disk 1663 * Roll down the "path" in the state structure, storing the on-disk
1658 * block number for those buffers in the "path". 1664 * block number for those buffers in the "path".
@@ -1699,6 +1705,8 @@ xfs_attr_refillstate(xfs_da_state_t *state)
1699 xfs_da_state_blk_t *blk; 1705 xfs_da_state_blk_t *blk;
1700 int level, error; 1706 int level, error;
1701 1707
1708 trace_xfs_attr_refillstate(state->args);
1709
1702 /* 1710 /*
1703 * Roll down the "path" in the state structure, storing the on-disk 1711 * Roll down the "path" in the state structure, storing the on-disk
1704 * block number for those buffers in the "path". 1712 * block number for those buffers in the "path".
@@ -1755,6 +1763,8 @@ xfs_attr_node_get(xfs_da_args_t *args)
1755 int error, retval; 1763 int error, retval;
1756 int i; 1764 int i;
1757 1765
1766 trace_xfs_attr_node_get(args);
1767
1758 state = xfs_da_state_alloc(); 1768 state = xfs_da_state_alloc();
1759 state->args = args; 1769 state->args = args;
1760 state->mp = args->dp->i_mount; 1770 state->mp = args->dp->i_mount;
@@ -1804,6 +1814,8 @@ xfs_attr_node_list(xfs_attr_list_context_t *context)
1804 int error, i; 1814 int error, i;
1805 struct xfs_buf *bp; 1815 struct xfs_buf *bp;
1806 1816
1817 trace_xfs_attr_node_list(context);
1818
1807 cursor = context->cursor; 1819 cursor = context->cursor;
1808 cursor->initted = 1; 1820 cursor->initted = 1;
1809 1821
@@ -1959,6 +1971,8 @@ xfs_attr_rmtval_get(xfs_da_args_t *args)
1959 int nmap, error, tmp, valuelen, blkcnt, i; 1971 int nmap, error, tmp, valuelen, blkcnt, i;
1960 xfs_dablk_t lblkno; 1972 xfs_dablk_t lblkno;
1961 1973
1974 trace_xfs_attr_rmtval_get(args);
1975
1962 ASSERT(!(args->flags & ATTR_KERNOVAL)); 1976 ASSERT(!(args->flags & ATTR_KERNOVAL));
1963 1977
1964 mp = args->dp->i_mount; 1978 mp = args->dp->i_mount;
@@ -2014,6 +2028,8 @@ xfs_attr_rmtval_set(xfs_da_args_t *args)
2014 xfs_dablk_t lblkno; 2028 xfs_dablk_t lblkno;
2015 int blkcnt, valuelen, nmap, error, tmp, committed; 2029 int blkcnt, valuelen, nmap, error, tmp, committed;
2016 2030
2031 trace_xfs_attr_rmtval_set(args);
2032
2017 dp = args->dp; 2033 dp = args->dp;
2018 mp = dp->i_mount; 2034 mp = dp->i_mount;
2019 src = args->value; 2035 src = args->value;
@@ -2143,6 +2159,8 @@ xfs_attr_rmtval_remove(xfs_da_args_t *args)
2143 xfs_dablk_t lblkno; 2159 xfs_dablk_t lblkno;
2144 int valuelen, blkcnt, nmap, error, done, committed; 2160 int valuelen, blkcnt, nmap, error, done, committed;
2145 2161
2162 trace_xfs_attr_rmtval_remove(args);
2163
2146 mp = args->dp->i_mount; 2164 mp = args->dp->i_mount;
2147 2165
2148 /* 2166 /*