diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-11-28 12:39:11 -0500 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-11-28 12:50:46 -0500 |
commit | 0935db747739782fc779eb58529610c12db88ea2 (patch) | |
tree | 27df2a16a8eb06c0548ea8fd4feb28aa1cbc5e1b /fs/nilfs2/segment.c | |
parent | abdb318b79d387a723af5db2aa79f812cefd0797 (diff) |
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>
Diffstat (limited to 'fs/nilfs2/segment.c')
-rw-r--r-- | fs/nilfs2/segment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index 097f9c467fef..79acf4d66e88 100644 --- a/fs/nilfs2/segment.c +++ b/fs/nilfs2/segment.c | |||
@@ -1363,7 +1363,7 @@ static int nilfs_segctor_extend_segments(struct nilfs_sc_info *sci, | |||
1363 | list_add_tail(&segbuf->sb_list, &list); | 1363 | list_add_tail(&segbuf->sb_list, &list); |
1364 | prev = segbuf; | 1364 | prev = segbuf; |
1365 | } | 1365 | } |
1366 | list_splice(&list, sci->sc_segbufs.prev); | 1366 | list_splice_tail(&list, &sci->sc_segbufs); |
1367 | return 0; | 1367 | return 0; |
1368 | 1368 | ||
1369 | failed_segbuf: | 1369 | failed_segbuf: |
@@ -2532,7 +2532,7 @@ int nilfs_clean_segments(struct super_block *sb, struct nilfs_argv *argv, | |||
2532 | 2532 | ||
2533 | sci->sc_freesegs = kbufs[4]; | 2533 | sci->sc_freesegs = kbufs[4]; |
2534 | sci->sc_nfreesegs = argv[4].v_nmembs; | 2534 | sci->sc_nfreesegs = argv[4].v_nmembs; |
2535 | list_splice_init(&nilfs->ns_gc_inodes, sci->sc_gc_inodes.prev); | 2535 | list_splice_tail_init(&nilfs->ns_gc_inodes, &sci->sc_gc_inodes); |
2536 | 2536 | ||
2537 | for (;;) { | 2537 | for (;;) { |
2538 | nilfs_segctor_accept(sci, &req); | 2538 | nilfs_segctor_accept(sci, &req); |