mpage: use b_folio in do_mpage_readpage()

JIRA: https://issues.redhat.com/browse/RHEL-27740
Tested: by me

commit a5fd8390d2b2db15fd043b8bd571b536101222c2
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date:   Thu Dec 15 21:44:02 2022 +0000

    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>

Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
This commit is contained in:
Aristeu Rozanski 2024-04-29 14:32:56 -04:00
parent d02893d175
commit abd752c934
1 changed files with 1 additions and 1 deletions

View File

@ -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;