aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2008-10-30 01:55:13 -0400
committerLachlan McIlroy <lachlan@sgi.com>2008-10-30 01:55:13 -0400
commit8c4ed633e65d0bd0a25d45aad9b4646e3236cad7 (patch)
tree36877f1d34c0dbd20cfd0315112d62dbf4571b80 /fs/xfs/xfs_inode.c
parent854929f05831d3a290a802815ee955b96c740c61 (diff)
[XFS] make btree tracing generic
Make the existing bmap btree tracing generic so that it applies to all btree types. Some fragments lifted from a patch by Dave Chinner. SGI-PV: 985583 SGI-Modid: xfs-linux-melb:xfs-kern:32187a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Bill O'Donnell <billodo@sgi.com> Signed-off-by: David Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 2a158a26286a..cc0474ddd2d4 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -41,6 +41,7 @@
41#include "xfs_buf_item.h" 41#include "xfs_buf_item.h"
42#include "xfs_inode_item.h" 42#include "xfs_inode_item.h"
43#include "xfs_btree.h" 43#include "xfs_btree.h"
44#include "xfs_btree_trace.h"
44#include "xfs_alloc.h" 45#include "xfs_alloc.h"
45#include "xfs_ialloc.h" 46#include "xfs_ialloc.h"
46#include "xfs_bmap.h" 47#include "xfs_bmap.h"
@@ -835,7 +836,7 @@ xfs_inode_alloc(
835#ifdef XFS_BMAP_TRACE 836#ifdef XFS_BMAP_TRACE
836 ip->i_xtrace = ktrace_alloc(XFS_BMAP_KTRACE_SIZE, KM_NOFS); 837 ip->i_xtrace = ktrace_alloc(XFS_BMAP_KTRACE_SIZE, KM_NOFS);
837#endif 838#endif
838#ifdef XFS_BMBT_TRACE 839#ifdef XFS_BTREE_TRACE
839 ip->i_btrace = ktrace_alloc(XFS_BMBT_KTRACE_SIZE, KM_NOFS); 840 ip->i_btrace = ktrace_alloc(XFS_BMBT_KTRACE_SIZE, KM_NOFS);
840#endif 841#endif
841#ifdef XFS_RW_TRACE 842#ifdef XFS_RW_TRACE
@@ -2673,7 +2674,7 @@ xfs_idestroy(
2673#ifdef XFS_BMAP_TRACE 2674#ifdef XFS_BMAP_TRACE
2674 ktrace_free(ip->i_xtrace); 2675 ktrace_free(ip->i_xtrace);
2675#endif 2676#endif
2676#ifdef XFS_BMBT_TRACE 2677#ifdef XFS_BTREE_TRACE
2677 ktrace_free(ip->i_btrace); 2678 ktrace_free(ip->i_btrace);
2678#endif 2679#endif
2679#ifdef XFS_RW_TRACE 2680#ifdef XFS_RW_TRACE