Message ID | a77256a3af2055537dc0eb7b15995fc673a4c0cc.1496422340.git.dsterba@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 06/03/17 00:58, David Sterba wrote: > Update direct callers of btrfs_bio_alloc that do error handling, that we > can now remove. Reviewed-by: Anand Jain <anand.jain@oracle.com> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 78a787c36a35..17f80a18e787 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2807,9 +2807,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;
Update direct callers of btrfs_bio_alloc that do error handling, that we can now remove. Signed-off-by: David Sterba <dsterba@suse.com> --- fs/btrfs/extent_io.c | 3 --- 1 file changed, 3 deletions(-)