aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakpm@osdl.org <akpm@osdl.org>2005-04-16 15:24:07 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 15:24:07 -0700
commit76c3073a888ae7f4790a146784bb5c34fc24b9d2 (patch)
tree553ce5e651b26fae65a2a35e95570c88e2eab46d
parent323aca6c0bda611d0f31b3234d9fe291d31a9207 (diff)
downloadkernel_samsung_aries-76c3073a888ae7f4790a146784bb5c34fc24b9d2.zip
kernel_samsung_aries-76c3073a888ae7f4790a146784bb5c34fc24b9d2.tar.gz
kernel_samsung_aries-76c3073a888ae7f4790a146784bb5c34fc24b9d2.tar.bz2
[PATCH] end_buffer_write_sync() avoid pointless assignments
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--fs/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index f961605..3b12cf9 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -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;
}