Commit 9a5c2c0c authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Christoph Hellwig

[XFS] Small ktrace fixes

SGI Modid: xfs-linux:xfs-kern:164115a
parent eb8171b8
...@@ -2091,6 +2091,10 @@ pagebuf_terminate(void) ...@@ -2091,6 +2091,10 @@ pagebuf_terminate(void)
{ {
pagebuf_daemon_stop(); pagebuf_daemon_stop();
#ifdef PAGEBUF_TRACE
ktrace_free(pagebuf_trace_buf);
#endif
kmem_cache_destroy(pagebuf_cache); kmem_cache_destroy(pagebuf_cache);
unregister_sysctl_table(pagebuf_table_header); unregister_sysctl_table(pagebuf_table_header);
......
...@@ -106,12 +106,11 @@ STATIC int xfs_attr_rmtval_remove(xfs_da_args_t *args); ...@@ -106,12 +106,11 @@ STATIC int xfs_attr_rmtval_remove(xfs_da_args_t *args);
#define ATTR_RMTVALUE_MAPSIZE 1 /* # of map entries at once */ #define ATTR_RMTVALUE_MAPSIZE 1 /* # of map entries at once */
#define ATTR_RMTVALUE_TRANSBLKS 8 /* max # of blks in a transaction */ #define ATTR_RMTVALUE_TRANSBLKS 8 /* max # of blks in a transaction */
#if defined(DEBUG) #if defined(XFS_ATTR_TRACE)
ktrace_t *xfs_attr_trace_buf; ktrace_t *xfs_attr_trace_buf;
#endif #endif
/*======================================================================== /*========================================================================
* Overall external interface routines. * Overall external interface routines.
*========================================================================*/ *========================================================================*/
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
#include "xfs_error.h" #include "xfs_error.h"
#include "xfs_quota.h" #include "xfs_quota.h"
#ifdef DEBUG #if defined(XFS_BMBT_TRACE)
ktrace_t *xfs_bmbt_trace_buf; ktrace_t *xfs_bmbt_trace_buf;
#endif #endif
......
...@@ -162,7 +162,7 @@ STATIC int xfs_dir_node_getdents(xfs_trans_t *trans, xfs_inode_t *dp, ...@@ -162,7 +162,7 @@ STATIC int xfs_dir_node_getdents(xfs_trans_t *trans, xfs_inode_t *dp,
xfs_dir_put_t put); xfs_dir_put_t put);
STATIC int xfs_dir_node_replace(xfs_da_args_t *args); STATIC int xfs_dir_node_replace(xfs_da_args_t *args);
#if defined(DEBUG) #if defined(XFS_DIR_TRACE)
ktrace_t *xfs_dir_trace_buf; ktrace_t *xfs_dir_trace_buf;
#endif #endif
......
...@@ -49,11 +49,9 @@ ...@@ -49,11 +49,9 @@
#include "xfs_da_btree.h" #include "xfs_da_btree.h"
#include "xfs_dir2_trace.h" #include "xfs_dir2_trace.h"
#ifdef DEBUG #ifdef XFS_DIR2_TRACE
ktrace_t *xfs_dir2_trace_buf; ktrace_t *xfs_dir2_trace_buf;
#endif /* DEBUG */
#ifdef XFS_DIR2_TRACE
/* /*
* Enter something in the trace buffers. * Enter something in the trace buffers.
*/ */
......
...@@ -171,6 +171,25 @@ xfs_cleanup(void) ...@@ -171,6 +171,25 @@ xfs_cleanup(void)
xfs_sysctl_unregister(); xfs_sysctl_unregister();
xfs_refcache_destroy(); xfs_refcache_destroy();
#ifdef XFS_DIR2_TRACE
ktrace_free(xfs_dir2_trace_buf);
#endif
#ifdef XFS_ATTR_TRACE
ktrace_free(xfs_attr_trace_buf);
#endif
#ifdef XFS_DIR_TRACE
ktrace_free(xfs_dir_trace_buf);
#endif
#ifdef XFS_BMBT_TRACE
ktrace_free(xfs_bmbt_trace_buf);
#endif
#ifdef XFS_BMAP_TRACE
ktrace_free(xfs_bmap_trace_buf);
#endif
#ifdef XFS_ALLOC_TRACE
ktrace_free(xfs_alloc_trace_buf);
#endif
kmem_cache_destroy(xfs_bmap_free_item_zone); kmem_cache_destroy(xfs_bmap_free_item_zone);
kmem_cache_destroy(xfs_btree_cur_zone); kmem_cache_destroy(xfs_btree_cur_zone);
kmem_cache_destroy(xfs_inode_zone); kmem_cache_destroy(xfs_inode_zone);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment