diff options
author | NeilBrown <neilb@suse.de> | 2006-01-06 03:20:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:34:08 -0500 |
commit | c708443c004f2310abdd7f1c353daa372b37f7a2 (patch) | |
tree | b02286101b7f8e9bcad8c30240cb5247010398b3 /drivers/md | |
parent | 07dbd37727049c0d56e313e5afcf8db07a9c3e37 (diff) |
[PATCH] md: make sure bitmap updates are visible through filesystem
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 <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/bitmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index ee4a3424a8a3..76a189ceb529 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
@@ -315,6 +315,8 @@ static int write_page(struct bitmap *bitmap, struct page *page, int wait) | |||
315 | if (bitmap->file == NULL) | 315 | if (bitmap->file == NULL) |
316 | return write_sb_page(bitmap->mddev, bitmap->offset, page, wait); | 316 | return write_sb_page(bitmap->mddev, bitmap->offset, page, wait); |
317 | 317 | ||
318 | flush_dcache_page(page); /* make sure visible to anyone reading the file */ | ||
319 | |||
318 | if (wait) | 320 | if (wait) |
319 | lock_page(page); | 321 | lock_page(page); |
320 | else { | 322 | else { |