]> 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)
commit374c2837f49646a0c4551688034799d78d945ba2
tree6cf48478f58d80c281f1c8e2c55429c8df8177bb
parentbfb40601722c0ba8435471a3f94ad90737ceef70
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