summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-06-02 17:38:30 +0200
committerDavid Sterba <dsterba@suse.com>2017-06-19 18:26:02 +0200
commit0c4dd97c5efddd6cac144d73635962ce6e48165b (patch)
tree8c211ee92671e78ab1ab37da887f122f29ba5e67 /fs
parent6e707bcd1f71949c7fc0520c388c64aae91b2d77 (diff)
downloadop-kernel-dev-0c4dd97c5efddd6cac144d73635962ce6e48165b.zip
op-kernel-dev-0c4dd97c5efddd6cac144d73635962ce6e48165b.tar.gz
btrfs: btrfs_bio_alloc never fails, skip error handling
Update direct callers of btrfs_bio_alloc that do error handling, that we can now remove. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/extent_io.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 9ff3e78..e15bd02e 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2808,9 +2808,6 @@ static int submit_extent_page(int op, int op_flags, struct extent_io_tree *tree,
bio = btrfs_bio_alloc(bdev, sector, BIO_MAX_PAGES,
GFP_NOFS | __GFP_HIGH);
- if (!bio)
- return -ENOMEM;
-
bio_add_page(bio, page, page_size, offset);
bio->bi_end_io = end_io_func;
bio->bi_private = tree;
OpenPOWER on IntegriCloud