Commit 76c3073a authored by akpm@osdl.org's avatar akpm@osdl.org Committed by Linus Torvalds

[PATCH] end_buffer_write_sync() avoid pointless assignments

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 323aca6c
......@@ -2838,14 +2838,14 @@ void ll_rw_block(int rw, int nr, struct buffer_head *bhs[])
get_bh(bh);
if (rw == WRITE) {
bh->b_end_io = end_buffer_write_sync;
if (test_clear_buffer_dirty(bh)) {
bh->b_end_io = end_buffer_write_sync;
submit_bh(WRITE, bh);
continue;
}
} else {
bh->b_end_io = end_buffer_read_sync;
if (!buffer_uptodate(bh)) {
bh->b_end_io = end_buffer_read_sync;
submit_bh(rw, bh);
continue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment