diff mbox series

[RFC,03/31] iomap: Export iomap_writepage_end_bio()

Message ID 5c4a9997996d39e80e647278a546c28e0ce124ed.1623567940.git.rgoldwyn@suse.com (mailing list archive)
State New, archived
Headers show
Series btrfs buffered iomap support | expand

Commit Message

Goldwyn Rodrigues June 13, 2021, 1:39 p.m. UTC
From: Goldwyn Rodrigues <rgoldwyn@suse.com>

BTRFS marks ordered extents as uptodate clearing bits such as delalloc
after the bio is deemed complete. After marking the extents, btrfs needs
to call iomap_writepage_end_bio() to perform housekeeping on the pages:
end of writeback.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
---
 fs/iomap/buffered-io.c | 3 ++-
 include/linux/iomap.h  | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
index b6fd6d6118a6..f88f058cdefb 100644
--- a/fs/iomap/buffered-io.c
+++ b/fs/iomap/buffered-io.c
@@ -1173,12 +1173,13 @@  iomap_sort_ioends(struct list_head *ioend_list)
 }
 EXPORT_SYMBOL_GPL(iomap_sort_ioends);
 
-static void iomap_writepage_end_bio(struct bio *bio)
+void iomap_writepage_end_bio(struct bio *bio)
 {
 	struct iomap_ioend *ioend = bio->bi_private;
 
 	iomap_finish_ioend(ioend, blk_status_to_errno(bio->bi_status));
 }
+EXPORT_SYMBOL_GPL(iomap_writepage_end_bio);
 
 /*
  * Submit the final bio for an ioend.
diff --git a/include/linux/iomap.h b/include/linux/iomap.h
index 689d799b1915..8944711aa92e 100644
--- a/include/linux/iomap.h
+++ b/include/linux/iomap.h
@@ -238,6 +238,7 @@  struct iomap_writepage_ctx {
 };
 
 void iomap_finish_ioends(struct iomap_ioend *ioend, int error);
+void iomap_writepage_end_bio(struct bio *bio);
 void iomap_ioend_try_merge(struct iomap_ioend *ioend,
 		struct list_head *more_ioends);
 void iomap_sort_ioends(struct list_head *ioend_list);