]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b4934641400c7ce30f1064cdc61ede78675080f
tree22081983b659a91786c3e845891fd0f6537cb767
parentae653e5bd99ef4c17a0c0471baa71781a68d982a
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