diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2023-01-15 17:50:25 +0100 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-01-18 19:44:05 +0100 |
commit | c82abc2394642490da736b1ba78671bbcef81150 (patch) | |
tree | 8e4e8485959abdcdaa74b5fe8187d5c9bf27f0c3 /fs/iomap | |
parent | iomap: Add __iomap_get_folio helper (diff) | |
download | linux-c82abc2394642490da736b1ba78671bbcef81150.tar.xz linux-c82abc2394642490da736b1ba78671bbcef81150.zip |
iomap: Rename page_prepare handler to get_folio
The ->page_prepare() handler in struct iomap_page_ops is now somewhat
misnamed, so rename it to ->get_folio().
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/iomap')
-rw-r--r-- | fs/iomap/buffered-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index 666107c3a385..006ddf933948 100644 --- a/fs/iomap/buffered-io.c +++ b/fs/iomap/buffered-io.c @@ -607,8 +607,8 @@ static struct folio *__iomap_get_folio(struct iomap_iter *iter, loff_t pos, { const struct iomap_page_ops *page_ops = iter->iomap.page_ops; - if (page_ops && page_ops->page_prepare) - return page_ops->page_prepare(iter, pos, len); + if (page_ops && page_ops->get_folio) + return page_ops->get_folio(iter, pos, len); else return iomap_get_folio(iter, pos); } |