btrfs: store the bio opf in struct btrfs_bio_ctrl
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Feb 2023 15:16:55 +0000 (08:16 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:15 +0000 (18:01 +0200)
commitc000bc04bad42dbe86e705828c9a328f4052ff21
tree6554f45c61a8efb48dfbfd752bfb43398696c4c2
parenteb8d0c6d042fbe021098c4698a4b88b2e8027d17
btrfs: store the bio opf in struct btrfs_bio_ctrl

The bio op and flags never change over the life time of a bio_ctrl,
so move it in there instead of passing it down the deep call chain
all the way down to alloc_new_bio.

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