diff options
author | Christoph Hellwig <hch@lst.de> | 2011-07-13 07:43:50 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2011-07-13 07:43:50 -0400 |
commit | c84470dda7a1165d90f55c2025c4c8ca403d485e (patch) | |
tree | ee30dc29f914ab809f2388b3e184e738b712c22f /fs/xfs/xfs_ialloc_btree.c | |
parent | ea15ab3cdda1bc6822f572ce9ce5d86f097f9b08 (diff) |
xfs: remove leftovers of the old btree tracing code
Remove various bits left over from the old kdb-only btree tracing code, but
leave the actual trace point stubs in place to ease adding new event based
btree tracing.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_ialloc_btree.c')
-rw-r--r-- | fs/xfs/xfs_ialloc_btree.c | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/fs/xfs/xfs_ialloc_btree.c b/fs/xfs/xfs_ialloc_btree.c index 16921f55c542..c6a75815aea0 100644 --- a/fs/xfs/xfs_ialloc_btree.c +++ b/fs/xfs/xfs_ialloc_btree.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include "xfs_dinode.h" | 31 | #include "xfs_dinode.h" |
32 | #include "xfs_inode.h" | 32 | #include "xfs_inode.h" |
33 | #include "xfs_btree.h" | 33 | #include "xfs_btree.h" |
34 | #include "xfs_btree_trace.h" | ||
35 | #include "xfs_ialloc.h" | 34 | #include "xfs_ialloc.h" |
36 | #include "xfs_alloc.h" | 35 | #include "xfs_alloc.h" |
37 | #include "xfs_error.h" | 36 | #include "xfs_error.h" |
@@ -205,72 +204,6 @@ xfs_inobt_recs_inorder( | |||
205 | } | 204 | } |
206 | #endif /* DEBUG */ | 205 | #endif /* DEBUG */ |
207 | 206 | ||
208 | #ifdef XFS_BTREE_TRACE | ||
209 | ktrace_t *xfs_inobt_trace_buf; | ||
210 | |||
211 | STATIC void | ||
212 | xfs_inobt_trace_enter( | ||
213 | struct xfs_btree_cur *cur, | ||
214 | const char *func, | ||
215 | char *s, | ||
216 | int type, | ||
217 | int line, | ||
218 | __psunsigned_t a0, | ||
219 | __psunsigned_t a1, | ||
220 | __psunsigned_t a2, | ||
221 | __psunsigned_t a3, | ||
222 | __psunsigned_t a4, | ||
223 | __psunsigned_t a5, | ||
224 | __psunsigned_t a6, | ||
225 | __psunsigned_t a7, | ||
226 | __psunsigned_t a8, | ||
227 | __psunsigned_t a9, | ||
228 | __psunsigned_t a10) | ||
229 | { | ||
230 | ktrace_enter(xfs_inobt_trace_buf, (void *)(__psint_t)type, | ||
231 | (void *)func, (void *)s, NULL, (void *)cur, | ||
232 | (void *)a0, (void *)a1, (void *)a2, (void *)a3, | ||
233 | (void *)a4, (void *)a5, (void *)a6, (void *)a7, | ||
234 | (void *)a8, (void *)a9, (void *)a10); | ||
235 | } | ||
236 | |||
237 | STATIC void | ||
238 | xfs_inobt_trace_cursor( | ||
239 | struct xfs_btree_cur *cur, | ||
240 | __uint32_t *s0, | ||
241 | __uint64_t *l0, | ||
242 | __uint64_t *l1) | ||
243 | { | ||
244 | *s0 = cur->bc_private.a.agno; | ||
245 | *l0 = cur->bc_rec.i.ir_startino; | ||
246 | *l1 = cur->bc_rec.i.ir_free; | ||
247 | } | ||
248 | |||
249 | STATIC void | ||
250 | xfs_inobt_trace_key( | ||
251 | struct xfs_btree_cur *cur, | ||
252 | union xfs_btree_key *key, | ||
253 | __uint64_t *l0, | ||
254 | __uint64_t *l1) | ||
255 | { | ||
256 | *l0 = be32_to_cpu(key->inobt.ir_startino); | ||
257 | *l1 = 0; | ||
258 | } | ||
259 | |||
260 | STATIC void | ||
261 | xfs_inobt_trace_record( | ||
262 | struct xfs_btree_cur *cur, | ||
263 | union xfs_btree_rec *rec, | ||
264 | __uint64_t *l0, | ||
265 | __uint64_t *l1, | ||
266 | __uint64_t *l2) | ||
267 | { | ||
268 | *l0 = be32_to_cpu(rec->inobt.ir_startino); | ||
269 | *l1 = be32_to_cpu(rec->inobt.ir_freecount); | ||
270 | *l2 = be64_to_cpu(rec->inobt.ir_free); | ||
271 | } | ||
272 | #endif /* XFS_BTREE_TRACE */ | ||
273 | |||
274 | static const struct xfs_btree_ops xfs_inobt_ops = { | 207 | static const struct xfs_btree_ops xfs_inobt_ops = { |
275 | .rec_len = sizeof(xfs_inobt_rec_t), | 208 | .rec_len = sizeof(xfs_inobt_rec_t), |
276 | .key_len = sizeof(xfs_inobt_key_t), | 209 | .key_len = sizeof(xfs_inobt_key_t), |
@@ -286,18 +219,10 @@ static const struct xfs_btree_ops xfs_inobt_ops = { | |||
286 | .init_rec_from_cur = xfs_inobt_init_rec_from_cur, | 219 | .init_rec_from_cur = xfs_inobt_init_rec_from_cur, |
287 | .init_ptr_from_cur = xfs_inobt_init_ptr_from_cur, | 220 | .init_ptr_from_cur = xfs_inobt_init_ptr_from_cur, |
288 | .key_diff = xfs_inobt_key_diff, | 221 | .key_diff = xfs_inobt_key_diff, |
289 | |||
290 | #ifdef DEBUG | 222 | #ifdef DEBUG |
291 | .keys_inorder = xfs_inobt_keys_inorder, | 223 | .keys_inorder = xfs_inobt_keys_inorder, |
292 | .recs_inorder = xfs_inobt_recs_inorder, | 224 | .recs_inorder = xfs_inobt_recs_inorder, |
293 | #endif | 225 | #endif |
294 | |||
295 | #ifdef XFS_BTREE_TRACE | ||
296 | .trace_enter = xfs_inobt_trace_enter, | ||
297 | .trace_cursor = xfs_inobt_trace_cursor, | ||
298 | .trace_key = xfs_inobt_trace_key, | ||
299 | .trace_record = xfs_inobt_trace_record, | ||
300 | #endif | ||
301 | }; | 226 | }; |
302 | 227 | ||
303 | /* | 228 | /* |