* [PATCH 2/2] xfsprogs: Make repair transaction reservation aware of xfs_buf_log_overhead()
@ 2012-12-07 12:19 Jeff Liu
0 siblings, 0 replies; only message in thread
From: Jeff Liu @ 2012-12-07 12:19 UTC (permalink / raw)
To: xfs
Make the transaction reservation of repair works with the new xfs_buf_log_overhead().
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Cc: Dave Chinner <dchinner@redhat.com>
---
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@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-07 12:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-07 12:19 [PATCH 2/2] xfsprogs: Make repair transaction reservation aware of xfs_buf_log_overhead() Jeff Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox