# Re: \[dm-devel\] \[PATCH 01/17\] zonefs: use bio\_alloc in zonefs\_file\_dio\_append

- From: Damien Le Moal \<hidden\>
- Date: 2021-01-27 04:46:01 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/01/198555
- Thread: https://ratatoskr.run/linux-nfs/2021/01/198441/t.md

```text
On 2021/01/26 23:58, Christoph Hellwig wrote:
> Use bio_alloc instead of open coding it.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  fs/zonefs/super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c
> index bec47f2d074beb..faea2ed34b4a37 100644
> --- a/fs/zonefs/super.c
> +++ b/fs/zonefs/super.c
> @@ -678,7 +678,7 @@ static ssize_t zonefs_file_dio_append(struct kiocb *iocb, struct iov_iter *from)
>  	if (!nr_pages)
>  		return 0;
>  
> -	bio = bio_alloc_bioset(GFP_NOFS, nr_pages, &fs_bio_set);
> +	bio = bio_alloc(GFP_NOFS, nr_pages);
>  	if (!bio)
>  		return -ENOMEM;
>  
> 

Acked-by: Damien Le Moal <redacted>

-- 
Damien Le Moal
Western Digital Research

```
