Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231747
b: refs/heads/master
c: 4b72029
h: refs/heads/master
i:
  231745: 428aad4
  231743: 8d7b63e
v: v3
  • Loading branch information
Li Zefan committed Dec 22, 2010
1 parent d26f6bd commit ca7a3b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8844355df7f4e091b03cc131e1549631238b397b
refs/heads/master: 4b72029dc3fd6ba7dc45ccd1cf0aa0ebfa209bd3
8 changes: 8 additions & 0 deletions trunk/fs/btrfs/zlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ int btrfs_zlib_compress_pages(struct address_space *mapping,
data_in = kmap(in_page);

out_page = alloc_page(GFP_NOFS | __GFP_HIGHMEM);
if (out_page == NULL) {
ret = -1;
goto out;
}
cpage_out = kmap(out_page);
pages[0] = out_page;
nr_pages = 1;
Expand Down Expand Up @@ -263,6 +267,10 @@ int btrfs_zlib_compress_pages(struct address_space *mapping,
goto out;
}
out_page = alloc_page(GFP_NOFS | __GFP_HIGHMEM);
if (out_page == NULL) {
ret = -1;
goto out;
}
cpage_out = kmap(out_page);
pages[nr_pages] = out_page;
nr_pages++;
Expand Down

0 comments on commit ca7a3b4

Please sign in to comment.