]> git.ipfire.org Git - people/ms/linux.git/commit
btrfs: pass the btrfs_bio_ctrl to submit_one_bio
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Jun 2022 07:11:03 +0000 (09:11 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:34 +0000 (17:45 +0200)
commit722c82ac9ee658cd99d04a61595c7920f3ee24cf
treef7825ca99af41717f95b5a01d49e7212abe9e33d
parent9845e5ddcbfe160f4a668c51f38515729a3fb794
btrfs: pass the btrfs_bio_ctrl to submit_one_bio

submit_one_bio always works on the bio and compression flags from a
btrfs_bio_ctrl structure.  Pass the explicitly and clean up the
calling conventions by handling a NULL bio in submit_one_bio, and
using the btrfs_bio_ctrl to pass the mirror number as well.

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/extent_io.c