Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: mark bvec_{alloc,free} static

Only used in bio.c these days.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> -ck
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://patch.msgid.link/20260316161144.1607877-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
fed406f3 5d540162

+5 -7
+5 -2
block/bio.c
··· 34 34 unsigned int nr_irq; 35 35 }; 36 36 37 + #define BIO_INLINE_VECS 4 38 + 37 39 static struct biovec_slab { 38 40 int nr_vecs; 39 41 char *name; ··· 161 159 mutex_unlock(&bio_slab_lock); 162 160 } 163 161 164 - void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs) 162 + static void bvec_free(struct mempool *pool, struct bio_vec *bv, 163 + unsigned short nr_vecs) 165 164 { 166 165 BUG_ON(nr_vecs > BIO_MAX_VECS); 167 166 ··· 182 179 __GFP_NOMEMALLOC | __GFP_NORETRY | __GFP_NOWARN; 183 180 } 184 181 185 - struct bio_vec *bvec_alloc(mempool_t *pool, unsigned short *nr_vecs, 182 + static struct bio_vec *bvec_alloc(struct mempool *pool, unsigned short *nr_vecs, 186 183 gfp_t gfp_mask) 187 184 { 188 185 struct biovec_slab *bvs = biovec_slab(*nr_vecs);
-5
block/blk.h
··· 108 108 struct block_device *blkdev_get_no_open(dev_t dev, bool autoload); 109 109 void blkdev_put_no_open(struct block_device *bdev); 110 110 111 - #define BIO_INLINE_VECS 4 112 - struct bio_vec *bvec_alloc(mempool_t *pool, unsigned short *nr_vecs, 113 - gfp_t gfp_mask); 114 - void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs); 115 - 116 111 bool bvec_try_merge_hw_page(struct request_queue *q, struct bio_vec *bv, 117 112 struct page *page, unsigned len, unsigned offset); 118 113