Whamcloud - gitweb
b=4982
authorgreen <green>
Fri, 8 Apr 2005 08:04:52 +0000 (08:04 +0000)
committergreen <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

index ba68a36..79b3915 100644 (file)
@@ -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);