diff options
-rw-r--r-- | fs/btrfs/extent_io.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index b9755ce98218..3cfbd6261f9b 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -4624,9 +4624,7 @@ __alloc_extent_buffer(struct btrfs_fs_info *fs_info, u64 start, | |||
4624 | { | 4624 | { |
4625 | struct extent_buffer *eb = NULL; | 4625 | struct extent_buffer *eb = NULL; |
4626 | 4626 | ||
4627 | eb = kmem_cache_zalloc(extent_buffer_cache, GFP_NOFS); | 4627 | eb = kmem_cache_zalloc(extent_buffer_cache, GFP_NOFS|__GFP_NOFAIL); |
4628 | if (eb == NULL) | ||
4629 | return NULL; | ||
4630 | eb->start = start; | 4628 | eb->start = start; |
4631 | eb->len = len; | 4629 | eb->len = len; |
4632 | eb->fs_info = fs_info; | 4630 | eb->fs_info = fs_info; |
@@ -4884,7 +4882,7 @@ struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, | |||
4884 | return NULL; | 4882 | return NULL; |
4885 | 4883 | ||
4886 | for (i = 0; i < num_pages; i++, index++) { | 4884 | for (i = 0; i < num_pages; i++, index++) { |
4887 | p = find_or_create_page(mapping, index, GFP_NOFS); | 4885 | p = find_or_create_page(mapping, index, GFP_NOFS|__GFP_NOFAIL); |
4888 | if (!p) | 4886 | if (!p) |
4889 | goto free_eb; | 4887 | goto free_eb; |
4890 | 4888 | ||