aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/gfs2/ops_address.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index 9ab35a9ee75a..26c888890c24 100644
--- a/fs/gfs2/ops_address.c
+++ b/fs/gfs2/ops_address.c
@@ -208,11 +208,7 @@ static int stuffed_readpage(struct gfs2_inode *ip, struct page *page)
208 * so we need to supply one here. It doesn't happen often. 208 * so we need to supply one here. It doesn't happen often.
209 */ 209 */
210 if (unlikely(page->index)) { 210 if (unlikely(page->index)) {
211 kaddr = kmap_atomic(page, KM_USER0); 211 zero_user_page(page, 0, PAGE_CACHE_SIZE, KM_USER0);
212 memset(kaddr, 0, PAGE_CACHE_SIZE);
213 kunmap_atomic(kaddr, KM_USER0);
214 flush_dcache_page(page);
215 SetPageUptodate(page);
216 return 0; 212 return 0;
217 } 213 }
218 214