aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-10-05 16:43:45 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-09 09:20:43 -0400
commit4804b38293c020e7a2c841e86402f456c19d934d (patch)
tree748108b7438f8a7f47e17a3b50729e67a648cb7b /fs/btrfs/extent_io.c
parentedd33c99c4ba26ebe17c1a3d65b4aba25482ed32 (diff)
Btrfs: do not warn_on when we cannot alloc a page for an extent buffer
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 <jeromepoulin@gmail.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 8c37cb64be7..7dc69b38548 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -4249,10 +4249,8 @@ struct extent_buffer *alloc_extent_buffer(struct extent_io_tree *tree,
4249 4249
4250 for (i = 0; i < num_pages; i++, index++) { 4250 for (i = 0; i < num_pages; i++, index++) {
4251 p = find_or_create_page(mapping, index, GFP_NOFS); 4251 p = find_or_create_page(mapping, index, GFP_NOFS);
4252 if (!p) { 4252 if (!p)
4253 WARN_ON(1);
4254 goto free_eb; 4253 goto free_eb;
4255 }
4256 4254
4257 spin_lock(&mapping->private_lock); 4255 spin_lock(&mapping->private_lock);
4258 if (PagePrivate(p)) { 4256 if (PagePrivate(p)) {