PATCH: 2.5.40 flush the right thing in the rd cache

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 6 Oct 2002 18:08:45 +0100 (BST)


(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);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/