Commit a40a7505 authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: Use new list_move function

Submitted by Thunder
parent 2037f368
...@@ -552,8 +552,7 @@ dbUpdatePMap(struct inode *ipbmap, ...@@ -552,8 +552,7 @@ dbUpdatePMap(struct inode *ipbmap,
/* move bp after tblock in logsync list */ /* move bp after tblock in logsync list */
LOGSYNC_LOCK(log); LOGSYNC_LOCK(log);
list_del(&mp->synclist); list_move(&mp->synclist, &tblk->synclist);
list_add(&mp->synclist, &tblk->synclist);
LOGSYNC_UNLOCK(log); LOGSYNC_UNLOCK(log);
} }
......
...@@ -2819,8 +2819,7 @@ diUpdatePMap(struct inode *ipimap, ...@@ -2819,8 +2819,7 @@ diUpdatePMap(struct inode *ipimap,
mp->lsn = lsn; mp->lsn = lsn;
/* move mp after tblock in logsync list */ /* move mp after tblock in logsync list */
LOGSYNC_LOCK(log); LOGSYNC_LOCK(log);
list_del(&mp->synclist); list_move(&mp->synclist, &tblk->synclist);
list_add(&mp->synclist, &tblk->synclist);
LOGSYNC_UNLOCK(log); LOGSYNC_UNLOCK(log);
} }
/* inherit younger/larger clsn */ /* inherit younger/larger clsn */
......
...@@ -291,8 +291,7 @@ int lmLog(log_t * log, tblock_t * tblk, lrd_t * lrd, tlock_t * tlck) ...@@ -291,8 +291,7 @@ int lmLog(log_t * log, tblock_t * tblk, lrd_t * lrd, tlock_t * tlck)
tblk->lsn = mp->lsn; tblk->lsn = mp->lsn;
/* move tblock after page on logsynclist */ /* move tblock after page on logsynclist */
list_del(&tblk->synclist); list_move(&tblk->synclist, &mp->synclist);
list_add(&tblk->synclist, &mp->synclist);
} }
} }
......
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