[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b608329aef0841544f380acede9252caf10a48c6.1728071257.git.rgoldwyn@suse.com>
Date: Fri, 4 Oct 2024 16:04:31 -0400
From: Goldwyn Rodrigues <rgoldwyn@...e.de>
To: linux-kernel@...r.kernel.org
Cc: linux-fsdevel@...r.kernel.org,
Goldwyn Rodrigues <rgoldwyn@...e.com>
Subject: [PATCH 04/12] iomap: include iomap_read_end_io() in header
From: Goldwyn Rodrigues <rgoldwyn@...e.com>
iomap_read_end_io() will be used BTRFS after it has completed the reads
to handle control back to iomap to finish reads on all folios.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@...e.com>
---
fs/iomap/buffered-io.c | 2 +-
include/linux/iomap.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
index d007b4a8307c..0e682ff84e4a 100644
--- a/fs/iomap/buffered-io.c
+++ b/fs/iomap/buffered-io.c
@@ -326,7 +326,7 @@ static void iomap_finish_folio_read(struct folio *folio, size_t off,
folio_end_read(folio, uptodate);
}
-static void iomap_read_end_io(struct bio *bio)
+void iomap_read_end_io(struct bio *bio)
{
int error = blk_status_to_errno(bio->bi_status);
struct folio_iter fi;
diff --git a/include/linux/iomap.h b/include/linux/iomap.h
index f876d16353c6..7b757bea8455 100644
--- a/include/linux/iomap.h
+++ b/include/linux/iomap.h
@@ -280,6 +280,7 @@ int iomap_read_folio(struct folio *folio, const struct iomap_ops *ops,
const struct iomap_read_folio_ops *);
void iomap_readahead(struct readahead_control *, const struct iomap_ops *ops,
const struct iomap_read_folio_ops *);
+void iomap_read_end_io(struct bio *bio);
bool iomap_is_partially_uptodate(struct folio *, size_t from, size_t count);
struct folio *iomap_get_folio(struct iomap_iter *iter, loff_t pos, size_t len);
bool iomap_release_folio(struct folio *folio, gfp_t gfp_flags);
--
2.46.1
Powered by blists - more mailing lists