VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christoph Hellwig <hch@lst.de> 2021-02-02 18:19:24 +0100 committer: Jens Axboe <axboe@kernel.dk> 2021-02-08 08:33:16 -0700 commit: 0f2e6ab851ae146c468bc5151c302c6e2473f70a parent: de76fd893074ab2cea132c28ac9efd9d0434215e
Commit Summary:
block: turn the nr_iovecs argument to bio_alloc* into an unsigned short
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/block/bio.c b/block/bio.c
index ae241252ea14..3d28d4723f6f 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -407,7 +407,7 @@ static void punt_bios_to_rescuer(struct bio_set *bs)
  *
  * Returns: Pointer to new bio on success, NULL on failure.
  */
-struct bio *bio_alloc_bioset(gfp_t gfp_mask, unsigned int nr_iovecs,
+struct bio *bio_alloc_bioset(gfp_t gfp_mask, unsigned short nr_iovecs,
 			     struct bio_set *bs)
 {
 	gfp_t saved_gfp = gfp_mask;
@@ -493,7 +493,7 @@ EXPORT_SYMBOL(bio_alloc_bioset);
  *
  * Returns: Pointer to new bio on success, NULL on failure.
  */
-struct bio *bio_kmalloc(gfp_t gfp_mask, unsigned int nr_iovecs)
+struct bio *bio_kmalloc(gfp_t gfp_mask, unsigned short nr_iovecs)
 {
 	struct bio *bio;