Re: [PATCH v2 3/3] btrfs: rename struct btrfs_io_bio to btrfs_bio

David Sterba
2021-09-14T16:49:55Z

On Tue, Sep 14, 2021 at 09:25:43AM +0800, Qu Wenruo wrote:
> --- a/fs/btrfs/scrub.c
> +++ b/fs/btrfs/scrub.c
> @@ -1423,7 +1423,7 @@ static void scrub_recheck_block_on_raid56(struct btrfs_fs_info *fs_info,
> if (!first_page->dev->bdev)
> goto out;
>
> - bio = btrfs_io_bio_alloc(BIO_MAX_VECS);
> + bio = btrfs_bio_alloc(BIO_MAX_VECS);

As BIO_MAX_VECS is the default value, this should take 0 so it's
consistent with the rest.

> bio_set_dev(bio, first_page->dev->bdev);
>
> for (page_num = 0; page_num < sblock->page_count; page_num++) {