Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286936
b: refs/heads/master
c: 0c4e538
h: refs/heads/master
v: v3
  • Loading branch information
David Sterba authored and Chris Mason committed Jan 26, 2012
1 parent b677864 commit 48bba5c
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 9e622d6bea0202e9fe267955362c01918562c09b
refs/heads/master: 0c4e538bccc106872d31b1514570b4dac95fb7f2
7 changes: 7 additions & 0 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,13 @@ static int btree_releasepage(struct page *page, gfp_t gfp_flags)
tree = &BTRFS_I(page->mapping->host)->io_tree;
map = &BTRFS_I(page->mapping->host)->extent_tree;

/*
* We need to mask out eg. __GFP_HIGHMEM and __GFP_DMA32 as we're doing
* slab allocation from alloc_extent_state down the callchain where
* it'd hit a BUG_ON as those flags are not allowed.
*/
gfp_flags &= ~GFP_SLAB_BUG_MASK;

ret = try_release_extent_state(map, tree, page, gfp_flags);
if (!ret)
return 0;
Expand Down

0 comments on commit 48bba5c

Please sign in to comment.