From d37ee7f77bb6c93a8df590958d56166a88daafdd Mon Sep 17 00:00:00 2001 From: green Date: Fri, 8 Apr 2005 08:04:52 +0000 Subject: [PATCH] b=4982 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/obdfilter/filter_io_26.c b/lustre/obdfilter/filter_io_26.c index ba68a36..79b3915 100644 --- 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); -- 1.8.3.1