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, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 67fd6e9552d3..f739b256967e 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -290,6 +290,7 @@ static noinline int add_async_extent(struct async_cow *cow,
290 struct async_extent *async_extent; 290 struct async_extent *async_extent;
291 291
292 async_extent = kmalloc(sizeof(*async_extent), GFP_NOFS); 292 async_extent = kmalloc(sizeof(*async_extent), GFP_NOFS);
293 BUG_ON(!async_extent);
293 async_extent->start = start; 294 async_extent->start = start;
294 async_extent->ram_size = ram_size; 295 async_extent->ram_size = ram_size;
295 async_extent->compressed_size = compressed_size; 296 async_extent->compressed_size = compressed_size;
@@ -388,6 +389,7 @@ again:
388 (BTRFS_I(inode)->flags & BTRFS_INODE_COMPRESS))) { 389 (BTRFS_I(inode)->flags & BTRFS_INODE_COMPRESS))) {
389 WARN_ON(pages); 390 WARN_ON(pages);
390 pages = kzalloc(sizeof(struct page *) * nr_pages, GFP_NOFS); 391 pages = kzalloc(sizeof(struct page *) * nr_pages, GFP_NOFS);
392 BUG_ON(!pages);
391 393
392 if (BTRFS_I(inode)->force_compress) 394 if (BTRFS_I(inode)->force_compress)
393 compress_type = BTRFS_I(inode)->force_compress; 395 compress_type = BTRFS_I(inode)->force_compress;