From: Dave Kleikamp Date: Wed, 31 Mar 2004 03:48:27 +0000 (-0600) Subject: JFS: initialize log->bp before calling lmNextPage X-Git-Tag: v2.6.5~39^2^2 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=02e09d1e125a4530d8bbbb5b31f5839be5d774c5;p=history.git JFS: initialize log->bp before calling lmNextPage --- diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c index d53fff5bbe37..b72fb4a40adc 100644 --- a/fs/jfs/jfs_logmgr.c +++ b/fs/jfs/jfs_logmgr.c @@ -1371,14 +1371,13 @@ int lmLogInit(struct jfs_log * log) le32_to_cpu(logsuper->end), log->page, log->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; bp->l_pn = log->page; 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