]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: do not return errors from submit_bio_hook_t instances
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 14:33:28 +0000 (16:33 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:14 +0000 (17:03 +0200)
commitdc7755443afd4a914dfc51e91790d28b11ce1265
tree7a93d026918b0b90315b6fc43b567e36ee5fceeb
parentf77c829236e7d6c8ca6c9b5929312335a34b5782
btrfs: do not return errors from submit_bio_hook_t instances

Both btrfs_repair_one_sector and submit_bio_one as the direct caller of
one of the instances ignore errors as they expect the methods themselves
to call ->bi_end_io on error.  Remove the unused and dangerous return
value.

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