diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-08-12 06:49:51 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-08-12 17:58:37 -0400 |
commit | b49a0c1883899bf9bc6cc5b9c4e6ee5d0f552530 (patch) | |
tree | c601838e731215d9499caa5e40ea602214d39789 /fs/xfs | |
parent | 63d20d6e3620898e67f80c813ec199b19b1674a9 (diff) |
xfs: remove __KERNEL__ from debug code
There is no reason the remaining kernel-only debug code needs to
remain kernel-only. Kill the __KERNEL__ part of the defines, and let
userspace handle the debug code appropriately.
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')
-rw-r--r-- | fs/xfs/xfs_bmap.h | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_data.c | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_rtalloc.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_bmap.h b/fs/xfs/xfs_bmap.h index 8b2fe9785b3a..33b41f351225 100644 --- a/fs/xfs/xfs_bmap.h +++ b/fs/xfs/xfs_bmap.h | |||
@@ -127,7 +127,7 @@ static inline void xfs_bmap_init(xfs_bmap_free_t *flp, xfs_fsblock_t *fbp) | |||
127 | { BMAP_RIGHT_FILLING, "RF" }, \ | 127 | { BMAP_RIGHT_FILLING, "RF" }, \ |
128 | { BMAP_ATTRFORK, "ATTR" } | 128 | { BMAP_ATTRFORK, "ATTR" } |
129 | 129 | ||
130 | #if defined(__KERNEL) && defined(DEBUG) | 130 | #ifdef DEBUG |
131 | void xfs_bmap_trace_exlist(struct xfs_inode *ip, xfs_extnum_t cnt, | 131 | void xfs_bmap_trace_exlist(struct xfs_inode *ip, xfs_extnum_t cnt, |
132 | int whichfork, unsigned long caller_ip); | 132 | int whichfork, unsigned long caller_ip); |
133 | #define XFS_BMAP_TRACE_EXLIST(ip,c,w) \ | 133 | #define XFS_BMAP_TRACE_EXLIST(ip,c,w) \ |
diff --git a/fs/xfs/xfs_dir2_data.c b/fs/xfs/xfs_dir2_data.c index 4e1917dd6c5b..98c23faa701c 100644 --- a/fs/xfs/xfs_dir2_data.c +++ b/fs/xfs/xfs_dir2_data.c | |||
@@ -331,7 +331,7 @@ xfs_dir2_data_freefind( | |||
331 | xfs_dir2_data_free_t *dfp; /* bestfree entry */ | 331 | xfs_dir2_data_free_t *dfp; /* bestfree entry */ |
332 | xfs_dir2_data_aoff_t off; /* offset value needed */ | 332 | xfs_dir2_data_aoff_t off; /* offset value needed */ |
333 | struct xfs_dir2_data_free *bf; | 333 | struct xfs_dir2_data_free *bf; |
334 | #if defined(DEBUG) && defined(__KERNEL__) | 334 | #ifdef DEBUG |
335 | int matched; /* matched the value */ | 335 | int matched; /* matched the value */ |
336 | int seenzero; /* saw a 0 bestfree entry */ | 336 | int seenzero; /* saw a 0 bestfree entry */ |
337 | #endif | 337 | #endif |
@@ -339,7 +339,7 @@ xfs_dir2_data_freefind( | |||
339 | off = (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr); | 339 | off = (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr); |
340 | bf = xfs_dir3_data_bestfree_p(hdr); | 340 | bf = xfs_dir3_data_bestfree_p(hdr); |
341 | 341 | ||
342 | #if defined(DEBUG) && defined(__KERNEL__) | 342 | #ifdef DEBUG |
343 | /* | 343 | /* |
344 | * Validate some consistency in the bestfree table. | 344 | * Validate some consistency in the bestfree table. |
345 | * Check order, non-overlapping entries, and if we find the | 345 | * Check order, non-overlapping entries, and if we find the |
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index 48228067b0d2..6dbcb5e9fb5d 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c | |||
@@ -2147,7 +2147,7 @@ xfs_rtfree_extent( | |||
2147 | ASSERT(mp->m_rbmip->i_itemp != NULL); | 2147 | ASSERT(mp->m_rbmip->i_itemp != NULL); |
2148 | ASSERT(xfs_isilocked(mp->m_rbmip, XFS_ILOCK_EXCL)); | 2148 | ASSERT(xfs_isilocked(mp->m_rbmip, XFS_ILOCK_EXCL)); |
2149 | 2149 | ||
2150 | #if defined(__KERNEL__) && defined(DEBUG) | 2150 | #ifdef DEBUG |
2151 | /* | 2151 | /* |
2152 | * Check to see that this whole range is currently allocated. | 2152 | * Check to see that this whole range is currently allocated. |
2153 | */ | 2153 | */ |