aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.c
diff options
context:
space:
mode:
authorTim Shimmin <tes@sgi.com>2006-01-11 05:02:47 -0500
committerNathan Scott <nathans@sgi.com>2006-01-11 05:02:47 -0500
commit1259845d3f3e1d1cf96b2a78f3aec824b9d1e109 (patch)
tree5308cde48e134138ac60d994f3753673329b4f84 /fs/xfs/xfs_log.c
parent71df099dc3f9cd17e8564eb647d7c1fb2ee83e2d (diff)
[XFS] remove XFS_LOG_RES_DEBUG and turn on the res history all the time to
get more useful error info on space for trans items SGI-PV: 947110 SGI-Modid: xfs-linux-melb:xfs-kern:24886a Signed-off-by: Tim Shimmin <tes@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r--fs/xfs/xfs_log.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index f6bac20af7aa..3d9a36e77363 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1591,7 +1591,6 @@ xlog_state_finish_copy(xlog_t *log,
1591 * print out info relating to regions written which consume 1591 * print out info relating to regions written which consume
1592 * the reservation 1592 * the reservation
1593 */ 1593 */
1594#if defined(XFS_LOG_RES_DEBUG)
1595STATIC void 1594STATIC void
1596xlog_print_tic_res(xfs_mount_t *mp, xlog_ticket_t *ticket) 1595xlog_print_tic_res(xfs_mount_t *mp, xlog_ticket_t *ticket)
1597{ 1596{
@@ -1681,11 +1680,11 @@ xlog_print_tic_res(xfs_mount_t *mp, xlog_ticket_t *ticket)
1681 ticket->t_res_arr_sum, ticket->t_res_o_flow, 1680 ticket->t_res_arr_sum, ticket->t_res_o_flow,
1682 ticket->t_res_num_ophdrs, ophdr_spc, 1681 ticket->t_res_num_ophdrs, ophdr_spc,
1683 ticket->t_res_arr_sum + 1682 ticket->t_res_arr_sum +
1684 ticket->t_res_o_flow + ophdr_spc, 1683 ticket->t_res_o_flow + ophdr_spc,
1685 ticket->t_res_num); 1684 ticket->t_res_num);
1686 1685
1687 for (i = 0; i < ticket->t_res_num; i++) { 1686 for (i = 0; i < ticket->t_res_num; i++) {
1688 uint r_type = ticket->t_res_arr[i].r_type; 1687 uint r_type = ticket->t_res_arr[i].r_type;
1689 cmn_err(CE_WARN, 1688 cmn_err(CE_WARN,
1690 "region[%u]: %s - %u bytes\n", 1689 "region[%u]: %s - %u bytes\n",
1691 i, 1690 i,
@@ -1694,9 +1693,6 @@ xlog_print_tic_res(xfs_mount_t *mp, xlog_ticket_t *ticket)
1694 ticket->t_res_arr[i].r_len); 1693 ticket->t_res_arr[i].r_len);
1695 } 1694 }
1696} 1695}
1697#else
1698#define xlog_print_tic_res(mp, ticket)
1699#endif
1700 1696
1701/* 1697/*
1702 * Write some region out to in-core log 1698 * Write some region out to in-core log