When we update a page_cache page in the kernel, we need to
flush_dache_page or userspace might not see the change.
Signed-off-by: Neil Brown <[EMAIL PROTECTED]>
### Diffstat output
./drivers/md/bitmap.c | 2 ++
1 file changed, 2 insertions(+)
diff ./drivers/md/bitmap.c~current~ ./drivers/md/bitmap.c
--- ./drivers/md/bitmap.c~current~ 2005-12-12 10:45:26.000000000 +1100
+++ ./drivers/md/bitmap.c 2005-12-12 10:45:38.000000000 +1100
@@ -315,6 +315,8 @@ static int write_page(struct bitmap *bit
if (bitmap->file == NULL)
return write_sb_page(bitmap->mddev, bitmap->offset, page, wait);
+ flush_dcache_page(page); /* make sure visible to anyone reading the
file */
+
if (wait)
lock_page(page);
else {
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html