aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index c846482e7985..88f9df7bfdae 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4233,6 +4233,11 @@ again:
4233 map = kmap(page); 4233 map = kmap(page);
4234 read_extent_buffer(leaf, map + pg_offset, ptr, 4234 read_extent_buffer(leaf, map + pg_offset, ptr,
4235 copy_size); 4235 copy_size);
4236 if (pg_offset + copy_size < PAGE_CACHE_SIZE) {
4237 memset(map + pg_offset + copy_size, 0,
4238 PAGE_CACHE_SIZE - pg_offset -
4239 copy_size);
4240 }
4236 kunmap(page); 4241 kunmap(page);
4237 } 4242 }
4238 flush_dcache_page(page); 4243 flush_dcache_page(page);