From: David Sterba Date: Fri, 2 Jun 2017 15:38:30 +0000 (+0200) Subject: btrfs: btrfs_bio_alloc never fails, skip error handling X-Git-Tag: v4.13-rc1~150^2~57 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0c4dd97c5efddd6cac144d73635962ce6e48165b;p=karo-tx-linux.git 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 Signed-off-by: David Sterba --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 9ff3e78b9ef1..e15bd02e534f 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;