diff options
Diffstat (limited to 'fs/reiserfs/journal.c')
-rw-r--r-- | fs/reiserfs/journal.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index 1b73529b8099..9b3672d69367 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c | |||
@@ -34,7 +34,6 @@ | |||
34 | ** from within kupdate, it will ignore the immediate flag | 34 | ** from within kupdate, it will ignore the immediate flag |
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include <linux/config.h> | ||
38 | #include <asm/uaccess.h> | 37 | #include <asm/uaccess.h> |
39 | #include <asm/system.h> | 38 | #include <asm/system.h> |
40 | 39 | ||
@@ -834,8 +833,7 @@ static int write_ordered_buffers(spinlock_t * lock, | |||
834 | get_bh(bh); | 833 | get_bh(bh); |
835 | if (test_set_buffer_locked(bh)) { | 834 | if (test_set_buffer_locked(bh)) { |
836 | if (!buffer_dirty(bh)) { | 835 | if (!buffer_dirty(bh)) { |
837 | list_del_init(&jh->list); | 836 | list_move(&jh->list, &tmp); |
838 | list_add(&jh->list, &tmp); | ||
839 | goto loop_next; | 837 | goto loop_next; |
840 | } | 838 | } |
841 | spin_unlock(lock); | 839 | spin_unlock(lock); |
@@ -855,8 +853,7 @@ static int write_ordered_buffers(spinlock_t * lock, | |||
855 | ret = -EIO; | 853 | ret = -EIO; |
856 | } | 854 | } |
857 | if (buffer_dirty(bh)) { | 855 | if (buffer_dirty(bh)) { |
858 | list_del_init(&jh->list); | 856 | list_move(&jh->list, &tmp); |
859 | list_add(&jh->list, &tmp); | ||
860 | add_to_chunk(&chunk, bh, lock, write_ordered_chunk); | 857 | add_to_chunk(&chunk, bh, lock, write_ordered_chunk); |
861 | } else { | 858 | } else { |
862 | reiserfs_free_jh(bh); | 859 | reiserfs_free_jh(bh); |