Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274666
b: refs/heads/master
c: 560f7d7
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and David Sterba committed Oct 20, 2011
1 parent 667b75f commit 45dac70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a05a9bb18ae0abec0b513b5fde876c47905fa13e
refs/heads/master: 560f7d75457f86a43970aa413e334e394082dce4
6 changes: 5 additions & 1 deletion trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 45dac70

Please sign in to comment.