Whamcloud - gitweb
b=22610 a truncate_complete_page fix
authorMikhail Pershin <tappro@sun.com>
Fri, 20 Aug 2010 19:25:26 +0000 (23:25 +0400)
committerMikhail Pershin <tappro@sun.com>
Fri, 20 Aug 2010 19:25:26 +0000 (23:25 +0400)
truncate_complete_page implementation for the patchless
client could arbitrarily unset PG_Uptodate flag for a
page being kicked from the page cache, an uptodate check
right after a readpage call in filemap_fault could fail
because of that as though the page read had been unsuccessful.

i=Oleg Drokin
i=Johann Lombardi

lustre/include/linux/lustre_patchless_compat.h

index 39fe8f9..17fbc5c 100644 (file)
@@ -87,7 +87,6 @@ truncate_complete_page(struct address_space *mapping, struct page *page)
 #else
         clear_page_dirty(page);
 #endif
 #else
         clear_page_dirty(page);
 #endif
-        ClearPageUptodate(page);
         ClearPageMappedToDisk(page);
         ll_remove_from_page_cache(page);
         page_cache_release(page);       /* pagecache ref */
         ClearPageMappedToDisk(page);
         ll_remove_from_page_cache(page);
         page_cache_release(page);       /* pagecache ref */