2002-10-06 17:13:26

by Alan Cox

[permalink] [raw]
Subject: PATCH: 2.5.40 flush the right thing in the rd cache

(From Matthew Wilcox)

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.2.5.40/drivers/block/rd.c linux.2.5.40-ac5/drivers/block/rd.c
--- linux.2.5.40/drivers/block/rd.c 2002-10-02 21:34:05.000000000 +0100
+++ linux.2.5.40-ac5/drivers/block/rd.c 2002-10-03 00:17:22.000000000 +0100
@@ -213,7 +213,7 @@
kunmap(vec->bv_page);

if (rw == READ) {
- flush_dcache_page(page);
+ flush_dcache_page(sbh->b_page);
} else {
SetPageDirty(page);
}