btrfs: do not return errors from btrfs_submit_dio_bio
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Jun 2022 10:04:13 +0000 (12:04 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:40 +0000 (17:45 +0200)
commit37899117e8a000bc2d8395e1b2f01e68682ec85e
tree22081983b659a91786c3e845891fd0f6537cb767
parentea1f0cedefe9abd903a35900e4c1ba3e0413b017
btrfs: do not return errors from btrfs_submit_dio_bio

Always consume the bio and call the end_io handler on error instead of
returning an error and letting the caller handle it.  This matches what
the block layer submission and the other btrfs bio submission handlers do
and avoids any confusion on who needs to handle errors.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Tested-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c