Skip to content

Commit

Permalink
Btrfs: do not warn_on when we cannot alloc a page for an extent buffer
Browse files Browse the repository at this point in the history
It's just annoying and the user will have gotten a nice OOM killer message
so they are already fully aware they are screwed :).  Thanks,

Reported-by: Jérôme Poulin <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
  • Loading branch information
Josef Bacik authored and Chris Mason committed Oct 9, 2012
1 parent edd33c9 commit 4804b38
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -4249,10 +4249,8 @@ struct extent_buffer *alloc_extent_buffer(struct extent_io_tree *tree,

for (i = 0; i < num_pages; i++, index++) {
p = find_or_create_page(mapping, index, GFP_NOFS);
if (!p) {
WARN_ON(1);
if (!p)
goto free_eb;
}

spin_lock(&mapping->private_lock);
if (PagePrivate(p)) {
Expand Down

0 comments on commit 4804b38

Please sign in to comment.