nilfs2: use list_splice_tail or list_splice_tail_init
This applies list_splice_tail (or list_splice_tail_init) operation instead of list_splice (or list_splice_init, respectively) to append a new list to tail of an existing list. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
This commit is contained in:
@@ -2018,7 +2018,7 @@ static void nilfs_btree_lookup_dirty_buffers(struct nilfs_bmap *bmap,
|
||||
for (level = NILFS_BTREE_LEVEL_NODE_MIN;
|
||||
level < NILFS_BTREE_LEVEL_MAX;
|
||||
level++)
|
||||
list_splice(&lists[level], listp->prev);
|
||||
list_splice_tail(&lists[level], listp);
|
||||
}
|
||||
|
||||
static int nilfs_btree_assign_p(struct nilfs_btree *btree,
|
||||
|
Referens i nytt ärende
Block a user