[PATCH] fs: use list_move()
[deliverable/linux.git] / fs / jffs2 / wbuf.c
index a7f153f79ecb2436be0ef07dfc54cd7b8fcbc160..b9b700730dfeeac71b612f1e4365afec29a19e2c 100644 (file)
@@ -495,8 +495,7 @@ static void jffs2_wbuf_recover(struct jffs2_sb_info *c)
        /* Fix up the original jeb now it's on the bad_list */
        if (first_raw == jeb->first_node) {
                D1(printk(KERN_DEBUG "Failing block at %08x is now empty. Moving to erase_pending_list\n", jeb->offset));
-               list_del(&jeb->list);
-               list_add(&jeb->list, &c->erase_pending_list);
+               list_move(&jeb->list, &c->erase_pending_list);
                c->nr_erasing_blocks++;
                jffs2_erase_pending_trigger(c);
        }
This page took 0.030033 seconds and 5 git commands to generate.