Commit 02e09d1e authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: initialize log->bp before calling lmNextPage

parent 4e6e2877
...@@ -1371,14 +1371,13 @@ int lmLogInit(struct jfs_log * log) ...@@ -1371,14 +1371,13 @@ int lmLogInit(struct jfs_log * log)
le32_to_cpu(logsuper->end), log->page, log->eor, le32_to_cpu(logsuper->end), log->page, log->eor,
le16_to_cpu(lp->h.eor)); le16_to_cpu(lp->h.eor));
/* if current page is full, move on to next page */
if (log->eor >= LOGPSIZE - LOGPTLRSIZE)
lmNextPage(log);
log->bp = bp; log->bp = bp;
bp->l_pn = log->page; bp->l_pn = log->page;
bp->l_eor = log->eor; bp->l_eor = log->eor;
/* if current page is full, move on to next page */
if (log->eor >= LOGPSIZE - LOGPTLRSIZE)
lmNextPage(log);
/* /*
* initialize log syncpoint * initialize log syncpoint
......
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