btrfs: use on-stack bio in scrub_repair_page_from_good_copy
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Apr 2022 04:45:22 +0000 (06:45 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:12 +0000 (17:03 +0200)
commitf77dcc0d64d6b2a6cca81933fec1c17241ea572b
tree11782f99810bd42573aed178c4806dbd6b5ec407
parentf3b8a7f3fbc8e1ab27dfc5c47ebe3327b92fe2ed
btrfs: use on-stack bio in scrub_repair_page_from_good_copy

The I/O in repair_io_failue is synchronous and doesn't need a btrfs_bio,
so just use an on-stack 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/scrub.c