]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: move more work into btrfs_end_bioc
authorChristoph Hellwig <hch@lst.de>
Thu, 26 May 2022 07:36:33 +0000 (09:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:32 +0000 (17:45 +0200)
commitc0b301ad3275f535fd9f313b8ef3502ae95c98ae
tree82e6409fc87d2326dc4ab3cf75926bb82201f510
parentf763a82f9535d4eba1e7f1ecd2f5a2bf21c767b2
btrfs: move more work into btrfs_end_bioc

Assign ->mirror_num and ->bi_status in btrfs_end_bioc instead of
duplicating the logic in the callers.  Also remove the bio argument as
it always must be bioc->orig_bio and the now pointless bioc_error that
did nothing but assign bi_sector to the same value just sampled in the
caller.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@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/volumes.c