diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/disk-io.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index da4457f84d78..4c867112b4c8 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -961,6 +961,13 @@ static int btree_releasepage(struct page *page, gfp_t gfp_flags) | |||
961 | tree = &BTRFS_I(page->mapping->host)->io_tree; | 961 | tree = &BTRFS_I(page->mapping->host)->io_tree; |
962 | map = &BTRFS_I(page->mapping->host)->extent_tree; | 962 | map = &BTRFS_I(page->mapping->host)->extent_tree; |
963 | 963 | ||
964 | /* | ||
965 | * We need to mask out eg. __GFP_HIGHMEM and __GFP_DMA32 as we're doing | ||
966 | * slab allocation from alloc_extent_state down the callchain where | ||
967 | * it'd hit a BUG_ON as those flags are not allowed. | ||
968 | */ | ||
969 | gfp_flags &= ~GFP_SLAB_BUG_MASK; | ||
970 | |||
964 | ret = try_release_extent_state(map, tree, page, gfp_flags); | 971 | ret = try_release_extent_state(map, tree, page, gfp_flags); |
965 | if (!ret) | 972 | if (!ret) |
966 | return 0; | 973 | return 0; |