diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-05-15 06:55:30 +0200 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-05-15 08:46:45 -0600 |
| commit | 64cf531f9900c011afe97a28c8ef464d551cec1b (patch) | |
| tree | e0fe8420c66eb73d4bb4c87d72a526e7fca70fc0 /block | |
| parent | d5607f1fafd7eb72ed693b6a033d96221e870edd (diff) | |
| download | linux-next-history-64cf531f9900c011afe97a28c8ef464d551cec1b.tar.gz | |
block: remove zero_fill_bio_iter
Only used to implement zero_fill_bio, so directly implement that.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260515045547.3790129-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
| -rw-r--r-- | block/bio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/bio.c b/block/bio.c index b8972dba68a09..b990c453d72fe 100644 --- a/block/bio.c +++ b/block/bio.c @@ -635,15 +635,15 @@ struct bio *bio_kmalloc(unsigned short nr_vecs, gfp_t gfp_mask) } EXPORT_SYMBOL(bio_kmalloc); -void zero_fill_bio_iter(struct bio *bio, struct bvec_iter start) +void zero_fill_bio(struct bio *bio) { struct bio_vec bv; struct bvec_iter iter; - __bio_for_each_segment(bv, bio, iter, start) + bio_for_each_segment(bv, bio, iter) memzero_bvec(&bv); } -EXPORT_SYMBOL(zero_fill_bio_iter); +EXPORT_SYMBOL(zero_fill_bio); /** * bio_truncate - truncate the bio to small size of @new_size |
