Whamcloud - gitweb
- fixes in filter_clear_page_cache() accordingly to green's patch.
authoryury <yury>
Mon, 25 Apr 2005 09:13:45 +0000 (09:13 +0000)
committeryury <yury>
Mon, 25 Apr 2005 09:13:45 +0000 (09:13 +0000)
lustre/obdfilter/filter_io_26.c

index 281a41d..34f459a 100644 (file)
@@ -286,8 +286,8 @@ static void filter_clear_page_cache(struct inode *inode,
                 if (page == NULL)
                         continue;
                 if (page->mapping != NULL) {
-                        block_invalidatepage(page, 0);
                        wait_on_page_writeback(page);
+                        block_invalidatepage(page, 0);
                         ll_truncate_complete_page(page);
                 }
                 unlock_page(page);