btrfs: remove struct btrfs_bio::device field
authorChristoph Hellwig <hch@lst.de>
Sat, 21 Jan 2023 06:50:11 +0000 (07:50 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:51 +0000 (19:38 +0100)
commit860c8c451661c72f05713ffdef3707f1fa9184d1
tree0c22d529b6f1e874c46ec62841b9f2d274e1e524
parent3d49d0d31237d11268959c7873c56aab166be07b
btrfs: remove struct btrfs_bio::device field

The device field is only used by the simple end I/O handler, and for
that it can simply be stored in the bi_private field of the bio,
which is currently used for the fs_info that can be retrieved through
bbio->inode as well.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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/bio.c
fs/btrfs/bio.h