diff mbox series

[v9,10/11] block: export bio_release_pages and bio_iov_iter_get_pages

Message ID 20200428104605.8143-11-johannes.thumshirn@wdc.com (mailing list archive)
State Superseded
Headers show
Series Introduce Zone Append for writing to zoned block devices | expand

Commit Message

Johannes Thumshirn April 28, 2020, 10:46 a.m. UTC
Export bio_release_pages and bio_iov_iter_get_pages, so they can be used
from modular code.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
---
 block/bio.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Hannes Reinecke April 28, 2020, 11:43 a.m. UTC | #1
On 4/28/20 12:46 PM, Johannes Thumshirn wrote:
> Export bio_release_pages and bio_iov_iter_get_pages, so they can be used
> from modular code.
> 
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
> ---
>   block/bio.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/block/bio.c b/block/bio.c
> index 3aa3c4ce2e5e..e4c46e2bd5ba 100644
> --- a/block/bio.c
> +++ b/block/bio.c
> @@ -951,6 +951,7 @@ void bio_release_pages(struct bio *bio, bool mark_dirty)
>   		put_page(bvec->bv_page);
>   	}
>   }
> +EXPORT_SYMBOL_GPL(bio_release_pages);
>   
>   static int __bio_iov_bvec_add_pages(struct bio *bio, struct iov_iter *iter)
>   {
> @@ -1114,6 +1115,7 @@ int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter)
>   		bio_set_flag(bio, BIO_NO_PAGE_REF);
>   	return bio->bi_vcnt ? 0 : ret;
>   }
> +EXPORT_SYMBOL_GPL(bio_iov_iter_get_pages);
>   
>   static void submit_bio_wait_endio(struct bio *bio)
>   {
> 
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
Martin K. Petersen May 6, 2020, 3:23 a.m. UTC | #2
Johannes,

> Export bio_release_pages and bio_iov_iter_get_pages, so they can be
> used from modular code.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
diff mbox series

Patch

diff --git a/block/bio.c b/block/bio.c
index 3aa3c4ce2e5e..e4c46e2bd5ba 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -951,6 +951,7 @@  void bio_release_pages(struct bio *bio, bool mark_dirty)
 		put_page(bvec->bv_page);
 	}
 }
+EXPORT_SYMBOL_GPL(bio_release_pages);
 
 static int __bio_iov_bvec_add_pages(struct bio *bio, struct iov_iter *iter)
 {
@@ -1114,6 +1115,7 @@  int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter)
 		bio_set_flag(bio, BIO_NO_PAGE_REF);
 	return bio->bi_vcnt ? 0 : ret;
 }
+EXPORT_SYMBOL_GPL(bio_iov_iter_get_pages);
 
 static void submit_bio_wait_endio(struct bio *bio)
 {