Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / fs / reiserfs / journal.c
index 9b3672d..1b73529 100644 (file)
@@ -34,6 +34,7 @@
 **                     from within kupdate, it will ignore the immediate flag
 */
 
+#include <linux/config.h>
 #include <asm/uaccess.h>
 #include <asm/system.h>
 
@@ -833,7 +834,8 @@ static int write_ordered_buffers(spinlock_t * lock,
                get_bh(bh);
                if (test_set_buffer_locked(bh)) {
                        if (!buffer_dirty(bh)) {
-                               list_move(&jh->list, &tmp);
+                               list_del_init(&jh->list);
+                               list_add(&jh->list, &tmp);
                                goto loop_next;
                        }
                        spin_unlock(lock);
@@ -853,7 +855,8 @@ static int write_ordered_buffers(spinlock_t * lock,
                        ret = -EIO;
                }
                if (buffer_dirty(bh)) {
-                       list_move(&jh->list, &tmp);
+                       list_del_init(&jh->list);
+                       list_add(&jh->list, &tmp);
                        add_to_chunk(&chunk, bh, lock, write_ordered_chunk);
                } else {
                        reiserfs_free_jh(bh);