From: Mikhail Pershin Date: Fri, 20 Aug 2010 19:25:26 +0000 (+0400) Subject: b=22610 a truncate_complete_page fix X-Git-Tag: 2.0.51.0~48 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;ds=sidebyside;h=7c27d9a67ada42a70b638ca1701dc298142934cc;hp=fe37a1bfe3fa8173e84100fbe5025def1439077c;p=fs%2Flustre-release.git b=22610 a truncate_complete_page fix 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 --- diff --git a/lustre/include/linux/lustre_patchless_compat.h b/lustre/include/linux/lustre_patchless_compat.h index 39fe8f9..17fbc5c 100644 --- a/lustre/include/linux/lustre_patchless_compat.h +++ b/lustre/include/linux/lustre_patchless_compat.h @@ -87,7 +87,6 @@ truncate_complete_page(struct address_space *mapping, struct page *page) #else clear_page_dirty(page); #endif - ClearPageUptodate(page); ClearPageMappedToDisk(page); ll_remove_from_page_cache(page); page_cache_release(page); /* pagecache ref */