Really, this should be a clear_user_page(), but we can't reasonable get
a user address all the way down to it, so let's just flush it instead.
Note that 2.4 needs an equivalent fix.
diff -urpNX build-tools/dontdiff linus-2.5/mm/shmem.c parisc-2.5/mm/shmem.c
--- linus-2.5/mm/shmem.c Tue Oct 8 10:54:20 2002
+++ parisc-2.5/mm/shmem.c Tue Oct 8 16:49:24 2002
@@ -848,6 +848,7 @@ repeat:
info->alloced++;
spin_unlock(&info->lock);
clear_highpage(page);
+ flush_dcache_page(page);
SetPageUptodate(page);
}
-- Revolutions do not require corporate support. - 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 : Wed Oct 23 2002 - 22:00:29 EST