Make the transaction reservation of repair works with the new xfs_buf_log_overhead(). Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx> Cc: Dave Chinner <dchinner@xxxxxxxxxx> --- repair/phase6.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/repair/phase6.c b/repair/phase6.c index cbe0b35..f6b0250 100644 --- a/repair/phase6.c +++ b/repair/phase6.c @@ -711,11 +711,12 @@ mk_rsumino(xfs_mount_t *mp) xfs_bmap_init(&flist, &first); nsumblocks = mp->m_rsumsize >> mp->m_sb.sb_blocklog; - if ((error = libxfs_trans_reserve(tp, - mp->m_sb.sb_rbmblocks + - (XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) - 1), - BBTOB(128), 0, XFS_TRANS_PERM_LOG_RES, - XFS_DEFAULT_PERM_LOG_COUNT))) + error = libxfs_trans_reserve(tp, mp->m_sb.sb_rbmblocks + + (XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) - 1), + BBTOB(xfs_buf_log_overhead()), 0, + XFS_TRANS_PERM_LOG_RES, + XFS_DEFAULT_PERM_LOG_COUNT); + if (error) res_failed(error); libxfs_trans_ijoin(tp, ip, 0); -- 1.7.9.5 _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs