summaryrefslogtreecommitdiff
path: root/fs/mpage.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-12-16 00:44:02 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-01-19 04:12:41 +0300
commita5fd8390d2b2db15fd043b8bd571b536101222c2 (patch)
tree5edce77fee797c0147773821961e5f59303a05a3 /fs/mpage.c
parentac55e78d9e44a5374f5726b94e55f5a7b5d51fb9 (diff)
downloadlinux-a5fd8390d2b2db15fd043b8bd571b536101222c2.tar.xz
mpage: use b_folio in do_mpage_readpage()
Remove this conversion of a folio back to a page. Link: https://lkml.kernel.org/r/20221215214402.3522366-13-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/mpage.c')
-rw-r--r--fs/mpage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/mpage.c b/fs/mpage.c
index 0f8ae954a579..db59cbf6affc 100644
--- a/fs/mpage.c
+++ b/fs/mpage.c
@@ -198,7 +198,7 @@ static struct bio *do_mpage_readpage(struct mpage_readpage_args *args)
/*
* Then do more get_blocks calls until we are done with this folio.
*/
- map_bh->b_page = &folio->page;
+ map_bh->b_folio = folio;
while (page_block < blocks_per_page) {
map_bh->b_state = 0;
map_bh->b_size = 0;