diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 2a7828c0e59b..f65ef8821c73 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -1854,6 +1854,7 @@ static int __block_prepare_write(struct inode *inode, struct page *page, | |||
1854 | clear_buffer_new(bh); | 1854 | clear_buffer_new(bh); |
1855 | kaddr = kmap_atomic(page, KM_USER0); | 1855 | kaddr = kmap_atomic(page, KM_USER0); |
1856 | memset(kaddr+block_start, 0, bh->b_size); | 1856 | memset(kaddr+block_start, 0, bh->b_size); |
1857 | flush_dcache_page(page); | ||
1857 | kunmap_atomic(kaddr, KM_USER0); | 1858 | kunmap_atomic(kaddr, KM_USER0); |
1858 | set_buffer_uptodate(bh); | 1859 | set_buffer_uptodate(bh); |
1859 | mark_buffer_dirty(bh); | 1860 | mark_buffer_dirty(bh); |
@@ -2360,6 +2361,7 @@ failed: | |||
2360 | */ | 2361 | */ |
2361 | kaddr = kmap_atomic(page, KM_USER0); | 2362 | kaddr = kmap_atomic(page, KM_USER0); |
2362 | memset(kaddr, 0, PAGE_CACHE_SIZE); | 2363 | memset(kaddr, 0, PAGE_CACHE_SIZE); |
2364 | flush_dcache_page(page); | ||
2363 | kunmap_atomic(kaddr, KM_USER0); | 2365 | kunmap_atomic(kaddr, KM_USER0); |
2364 | SetPageUptodate(page); | 2366 | SetPageUptodate(page); |
2365 | set_page_dirty(page); | 2367 | set_page_dirty(page); |