diff options
author | Christoph Hellwig <hch@lst.de> | 2019-06-26 16:49:21 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-06-29 18:47:31 +0300 |
commit | d241a95f3514a5eb544dfd8d9d141ffd1c89b707 (patch) | |
tree | 4e0545aab26f747bbe890cc9756dff3d276a2de6 /include/linux/bio.h | |
parent | b2d0d99135ad145667765cbd27f148c1a4cd50d1 (diff) | |
download | linux-d241a95f3514a5eb544dfd8d9d141ffd1c89b707.tar.xz |
block: optionally mark pages dirty in bio_release_pages
A lot of callers of bio_release_pages also want to mark the released
pages as dirty. Add a mark_dirty parameter to avoid a second
relatively expensive bio_for_each_segment_all loop.
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Christoph Hellwig <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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 6d82b4856282..2d8c73f0ecaf 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -426,7 +426,7 @@ bool __bio_try_merge_page(struct bio *bio, struct page *page, void __bio_add_page(struct bio *bio, struct page *page, unsigned int len, unsigned int off); int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter); -void bio_release_pages(struct bio *bio); +void bio_release_pages(struct bio *bio, bool mark_dirty); struct rq_map_data; extern struct bio *bio_map_user_iov(struct request_queue *, struct iov_iter *, gfp_t); |