btrfs: don't use bio->bi_private to pass the inode to submit_one_bio
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Jun 2022 07:11:01 +0000 (09:11 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:34 +0000 (17:45 +0200)
commit2d5ac130fa498d66d91c3aa46c0f87e63664d9e9
tree559ea6fb52544e2756770de3efda52c59ce8e4cd
parent234fdd2815ce8fe4da6782109580f3b166aeb97b
btrfs: don't use bio->bi_private to pass the inode to submit_one_bio

submit_one_bio is only used for page cache I/O, so the inode can be
trivially derived from the first page in the bio.

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