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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 9797592dc86b..6739424c0fe6 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -338,7 +338,7 @@ again:
338 if (!btrfs_test_flag(inode, NOCOMPRESS) && 338 if (!btrfs_test_flag(inode, NOCOMPRESS) &&
339 btrfs_test_opt(root, COMPRESS)) { 339 btrfs_test_opt(root, COMPRESS)) {
340 WARN_ON(pages); 340 WARN_ON(pages);
341 pages = kmalloc(sizeof(struct page *) * nr_pages, GFP_NOFS); 341 pages = kzalloc(sizeof(struct page *) * nr_pages, GFP_NOFS);
342 342
343 /* we want to make sure the amount of IO required to satisfy 343 /* we want to make sure the amount of IO required to satisfy
344 * a random read is reasonably small, so we limit the size 344 * a random read is reasonably small, so we limit the size