btrfs: simplify finding the inode in submit_one_bio
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Mar 2023 16:39:42 +0000 (17:39 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:17 +0000 (18:01 +0200)
commitd733ea012db32ea4354c6d89b9538bbe8aa9388e
tree0f0ad0dc312f69a677904401121add4c1c6799a1
parentb7d463a1d1252c2cd5e9f13c008eb49b8a5f75af
btrfs: simplify finding the inode in submit_one_bio

struct btrfs_bio now has an always valid inode pointer that can be used
to find the inode in submit_one_bio, so use that and initialize all
variables for which it is possible at declaration time.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c