diff options
author | Christoph Hellwig <hch@lst.de> | 2021-04-12 16:46:57 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-12 18:19:43 +0300 |
commit | 6f822e1b5d9dda3d20e87365de138046e3baa03a (patch) | |
tree | 3740bde81c3de04f0995a122738d5e72f6b0ebcb /include/linux/bio.h | |
parent | 907d52310024fae6632aabfc7e833decaf185e5f (diff) | |
download | linux-6f822e1b5d9dda3d20e87365de138046e3baa03a.tar.xz |
block: remove zero_fill_bio_iter
zero_fill_bio_iter is only used to implement zero_fill_bio, so
remove the indirection.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20210412134658.2623190-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index d0246c92a6e8..a8021d79d45d 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -485,14 +485,9 @@ extern void bio_copy_data_iter(struct bio *dst, struct bvec_iter *dst_iter, extern void bio_copy_data(struct bio *dst, struct bio *src); extern void bio_list_copy_data(struct bio *dst, struct bio *src); extern void bio_free_pages(struct bio *bio); -void zero_fill_bio_iter(struct bio *bio, struct bvec_iter iter); void bio_truncate(struct bio *bio, unsigned new_size); void guard_bio_eod(struct bio *bio); - -static inline void zero_fill_bio(struct bio *bio) -{ - zero_fill_bio_iter(bio, bio->bi_iter); -} +void zero_fill_bio(struct bio *bio); extern const char *bio_devname(struct bio *bio, char *buffer); |