]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: bioset allocations will never fail, adapt our helpers
authorDavid Sterba <dsterba@suse.com>
Fri, 2 Jun 2017 15:26:26 +0000 (17:26 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:02 +0000 (18:26 +0200)
commit6d1b019c268da352b8c32b3a96aa7f244b6feabc
tree6cf48478f58d80c281f1c8e2c55429c8df8177bb
parent18d6a8a9ab1526764f6ccce127e6d58068ebd84b
btrfs: bioset allocations will never fail, adapt our helpers

Christoph pointed out that bio allocations backed by a bioset will never
fail.  As we always use a bioset for all bio allocations, we can skip
the error handling.  This patch adjusts our low-level helpers, the
cascaded changes to all callers will come next.

CC: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c