PATCH: 2.5.40 flush the right thing in the rd cache

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sun Oct 06 2002 - 12:08:45 EST


(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/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:54 EST