Loading fs/btrfs/inode.c +5 −1 Original line number Diff line number Diff line Loading @@ -393,7 +393,10 @@ static noinline int compress_file_range(struct inode *inode, (BTRFS_I(inode)->flags & BTRFS_INODE_COMPRESS))) { WARN_ON(pages); pages = kzalloc(sizeof(struct page *) * nr_pages, GFP_NOFS); BUG_ON(!pages); if (!pages) { /* just bail out to the uncompressed code */ goto cont; } if (BTRFS_I(inode)->force_compress) compress_type = BTRFS_I(inode)->force_compress; Loading Loading @@ -424,6 +427,7 @@ static noinline int compress_file_range(struct inode *inode, will_compress = 1; } } cont: if (start == 0) { trans = btrfs_join_transaction(root); BUG_ON(IS_ERR(trans)); Loading Loading
fs/btrfs/inode.c +5 −1 Original line number Diff line number Diff line Loading @@ -393,7 +393,10 @@ static noinline int compress_file_range(struct inode *inode, (BTRFS_I(inode)->flags & BTRFS_INODE_COMPRESS))) { WARN_ON(pages); pages = kzalloc(sizeof(struct page *) * nr_pages, GFP_NOFS); BUG_ON(!pages); if (!pages) { /* just bail out to the uncompressed code */ goto cont; } if (BTRFS_I(inode)->force_compress) compress_type = BTRFS_I(inode)->force_compress; Loading Loading @@ -424,6 +427,7 @@ static noinline int compress_file_range(struct inode *inode, will_compress = 1; } } cont: if (start == 0) { trans = btrfs_join_transaction(root); BUG_ON(IS_ERR(trans)); Loading