Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4303092
)
b=4982
author
green
<green>
Fri, 8 Apr 2005 08:04:52 +0000
(08:04 +0000)
committer
green
<green>
Fri, 8 Apr 2005 08:04:52 +0000
(08:04 +0000)
r=adilger
Stick block_invalidatepage back in, as Andreas says trusting in jbd's
invalidate page logic can be dangerous and needs more investigations.
lustre/obdfilter/filter_io_26.c
patch
|
blob
|
history
diff --git
a/lustre/obdfilter/filter_io_26.c
b/lustre/obdfilter/filter_io_26.c
index
ba68a36
..
79b3915
100644
(file)
--- a/
lustre/obdfilter/filter_io_26.c
+++ b/
lustre/obdfilter/filter_io_26.c
@@
-356,8
+356,10
@@
static void filter_clear_page_cache(struct inode *inode, struct dio_request *iob
iobuf->dr_pages[i]->index);
if (page == NULL)
continue;
- if (page->mapping != NULL)
+ if (page->mapping != NULL) {
+ block_invalidatepage(page, 0);
ll_truncate_complete_page(page);
+ }
unlock_page(page);
page_cache_release(page);