]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/btrfs/inode.c
Btrfs: walk compressed pages based on the nr_pages count instead of bytes
[linux-2.6-omap-h63xx.git] / fs / btrfs / inode.c
index 9797592dc86b7c7b8398a18f61a892d70a86c24d..6739424c0fe683b40fa076a9c438c4d8a0bed63a 100644 (file)
@@ -338,7 +338,7 @@ again:
        if (!btrfs_test_flag(inode, NOCOMPRESS) &&
            btrfs_test_opt(root, COMPRESS)) {
                WARN_ON(pages);
-               pages = kmalloc(sizeof(struct page *) * nr_pages, GFP_NOFS);
+               pages = kzalloc(sizeof(struct page *) * nr_pages, GFP_NOFS);
 
                /* we want to make sure the amount of IO required to satisfy
                 * a random read is reasonably small, so we limit the size