]> www.infradead.org Git - users/hch/block.git/commitdiff
block: mark bio_truncate static bio-cleanup
authorChristoph Hellwig <hch@lst.de>
Mon, 6 Sep 2021 11:27:46 +0000 (13:27 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 09:37:09 +0000 (11:37 +0200)
bio_truncate is only used in bio.c, so mark it static.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/bio.c
include/linux/bio.h

index c89e402356a592c7a0652889bb6c8ceb42d91ecd..d5120451c36a3a14cfec010c2b8d77cd4d2fba31 100644 (file)
@@ -546,7 +546,7 @@ EXPORT_SYMBOL(zero_fill_bio);
  *   REQ_OP_READ, zero the truncated part. This function should only
  *   be used for handling corner cases, such as bio eod.
  */
-void bio_truncate(struct bio *bio, unsigned new_size)
+static void bio_truncate(struct bio *bio, unsigned new_size)
 {
        struct bio_vec bv;
        struct bvec_iter iter;
index 4c5106f2ed57ef9aa6a7cf0caa457b369ab840f3..d8d27742a75f99f41d5ffdd3ed902d00cf41a17c 100644 (file)
@@ -405,7 +405,6 @@ extern void bio_copy_data_iter(struct bio *dst, struct bvec_iter *dst_iter,
                               struct bio *src, struct bvec_iter *src_iter);
 extern void bio_copy_data(struct bio *dst, struct bio *src);
 extern void bio_free_pages(struct bio *bio);
-void bio_truncate(struct bio *bio, unsigned new_size);
 void guard_bio_eod(struct bio *bio);
 void zero_fill_bio(struct bio *bio);