mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
[PATCH] end_buffer_write_sync() avoid pointless assignments
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
323aca6c0b
commit
76c3073a88
@@ -2838,14 +2838,14 @@ void ll_rw_block(int rw, int nr, struct buffer_head *bhs[])
|
|||||||
|
|
||||||
get_bh(bh);
|
get_bh(bh);
|
||||||
if (rw == WRITE) {
|
if (rw == WRITE) {
|
||||||
bh->b_end_io = end_buffer_write_sync;
|
|
||||||
if (test_clear_buffer_dirty(bh)) {
|
if (test_clear_buffer_dirty(bh)) {
|
||||||
|
bh->b_end_io = end_buffer_write_sync;
|
||||||
submit_bh(WRITE, bh);
|
submit_bh(WRITE, bh);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
bh->b_end_io = end_buffer_read_sync;
|
|
||||||
if (!buffer_uptodate(bh)) {
|
if (!buffer_uptodate(bh)) {
|
||||||
|
bh->b_end_io = end_buffer_read_sync;
|
||||||
submit_bh(rw, bh);
|
submit_bh(rw, bh);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user