Commit 07bb44f3 authored by Timothy Shimmin's avatar Timothy Shimmin Committed by Nathan Scott

[XFS] Fix log recovery case when have v2 log with size >32K and we have a

Log Record wrapping around the physical log end. Need to reset
the pb size back to what we were using and NOT just 32K.

SGI Modid: xfs-linux:xfs-kern:167196a
parent 9d304963
...@@ -3658,7 +3658,7 @@ xlog_do_recovery_pass( ...@@ -3658,7 +3658,7 @@ xlog_do_recovery_pass(
error = xlog_bread(log, 0, wrapped_hblks, hbp); error = xlog_bread(log, 0, wrapped_hblks, hbp);
if (error) if (error)
goto bread_err2; goto bread_err2;
XFS_BUF_SET_PTR(hbp, bufaddr, hblks); XFS_BUF_SET_PTR(hbp, bufaddr, BBTOB(hblks));
if (!offset) if (!offset)
offset = xlog_align(log, 0, offset = xlog_align(log, 0,
wrapped_hblks, hbp); wrapped_hblks, hbp);
...@@ -3716,8 +3716,7 @@ xlog_do_recovery_pass( ...@@ -3716,8 +3716,7 @@ xlog_do_recovery_pass(
if ((error = xlog_bread(log, wrapped_hblks, if ((error = xlog_bread(log, wrapped_hblks,
bblks - split_bblks, dbp))) bblks - split_bblks, dbp)))
goto bread_err2; goto bread_err2;
XFS_BUF_SET_PTR(dbp, bufaddr, XFS_BUF_SET_PTR(dbp, bufaddr, h_size);
XLOG_BIG_RECORD_BSIZE);
if (!offset) if (!offset)
offset = xlog_align(log, wrapped_hblks, offset = xlog_align(log, wrapped_hblks,
bblks - split_bblks, dbp); bblks - split_bblks, dbp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment