aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 0349e714dc30..b82f4e43ef3e 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -884,6 +884,9 @@ xfs_iread(
884 * Initialize inode's trace buffers. 884 * Initialize inode's trace buffers.
885 * Do this before xfs_iformat in case it adds entries. 885 * Do this before xfs_iformat in case it adds entries.
886 */ 886 */
887#ifdef XFS_VNODE_TRACE
888 ip->i_trace = ktrace_alloc(VNODE_TRACE_SIZE, KM_SLEEP);
889#endif
887#ifdef XFS_BMAP_TRACE 890#ifdef XFS_BMAP_TRACE
888 ip->i_xtrace = ktrace_alloc(XFS_BMAP_KTRACE_SIZE, KM_SLEEP); 891 ip->i_xtrace = ktrace_alloc(XFS_BMAP_KTRACE_SIZE, KM_SLEEP);
889#endif 892#endif
@@ -2729,6 +2732,10 @@ xfs_idestroy(
2729 mrfree(&ip->i_lock); 2732 mrfree(&ip->i_lock);
2730 mrfree(&ip->i_iolock); 2733 mrfree(&ip->i_iolock);
2731 freesema(&ip->i_flock); 2734 freesema(&ip->i_flock);
2735
2736#ifdef XFS_VNODE_TRACE
2737 ktrace_free(ip->i_trace);
2738#endif
2732#ifdef XFS_BMAP_TRACE 2739#ifdef XFS_BMAP_TRACE
2733 ktrace_free(ip->i_xtrace); 2740 ktrace_free(ip->i_xtrace);
2734#endif 2741#endif