From: Christoph Hellwig Date: Tue, 26 Jan 2021 14:52:31 +0000 (+0100) Subject: zonefs: use bio_alloc in zonefs_file_dio_append X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f91ca2a370bec58eb3d54315b5cfa3a2a9288acc;p=linux.git zonefs: use bio_alloc in zonefs_file_dio_append Use bio_alloc instead of open coding it. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn Reviewed-by: Chaitanya Kulkarni Acked-by: Damien Le Moal Signed-off-by: Jens Axboe --- diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index bec47f2d074be..faea2ed34b4a3 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;