diff options
author | Jie Liu <jeff.liu@oracle.com> | 2014-02-06 23:26:11 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-02-06 23:26:11 -0500 |
commit | 492185ef1dd261768203a6c3accfd445cde8c503 (patch) | |
tree | 63a2d580bc49e3bc8bcc12cce819de085ab83959 /fs/xfs | |
parent | 4ae69fea588148360d470ce604714b6d619ea749 (diff) |
xfs: remove XFS_TRANS_DEBUG dead code
Remove the leftover XFS_TRANS_DEBUG dead code following the previous
cleaning up of it in commits ec47eb6b0b450.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_buf_item.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index 33149113e333..8752821443be 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c | |||
@@ -796,20 +796,6 @@ xfs_buf_item_init( | |||
796 | bip->bli_formats[i].blf_map_size = map_size; | 796 | bip->bli_formats[i].blf_map_size = map_size; |
797 | } | 797 | } |
798 | 798 | ||
799 | #ifdef XFS_TRANS_DEBUG | ||
800 | /* | ||
801 | * Allocate the arrays for tracking what needs to be logged | ||
802 | * and what our callers request to be logged. bli_orig | ||
803 | * holds a copy of the original, clean buffer for comparison | ||
804 | * against, and bli_logged keeps a 1 bit flag per byte in | ||
805 | * the buffer to indicate which bytes the callers have asked | ||
806 | * to have logged. | ||
807 | */ | ||
808 | bip->bli_orig = kmem_alloc(BBTOB(bp->b_length), KM_SLEEP); | ||
809 | memcpy(bip->bli_orig, bp->b_addr, BBTOB(bp->b_length)); | ||
810 | bip->bli_logged = kmem_zalloc(BBTOB(bp->b_length) / NBBY, KM_SLEEP); | ||
811 | #endif | ||
812 | |||
813 | /* | 799 | /* |
814 | * Put the buf item into the list of items attached to the | 800 | * Put the buf item into the list of items attached to the |
815 | * buffer at the front. | 801 | * buffer at the front. |
@@ -957,11 +943,6 @@ STATIC void | |||
957 | xfs_buf_item_free( | 943 | xfs_buf_item_free( |
958 | xfs_buf_log_item_t *bip) | 944 | xfs_buf_log_item_t *bip) |
959 | { | 945 | { |
960 | #ifdef XFS_TRANS_DEBUG | ||
961 | kmem_free(bip->bli_orig); | ||
962 | kmem_free(bip->bli_logged); | ||
963 | #endif /* XFS_TRANS_DEBUG */ | ||
964 | |||
965 | xfs_buf_item_free_format(bip); | 946 | xfs_buf_item_free_format(bip); |
966 | kmem_zone_free(xfs_buf_item_zone, bip); | 947 | kmem_zone_free(xfs_buf_item_zone, bip); |
967 | } | 948 | } |