]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0092c46014769bc6da4ce0854a95ff9efa2b0fe3
tree11782f99810bd42573aed178c4806dbd6b5ec407
parent7bbc46db2e443c55b892dbbcbdb8d63bb305ad96
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