mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 00:48:50 +00:00
mpage: convert map_buffer_to_folio() to folio_create_empty_buffers()
Saves a folio->page->folio conversion. Link: https://lkml.kernel.org/r/20231016201114.1928083-4-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Pankaj Raghav <p.raghav@samsung.com> Cc: Andreas Gruenbacher <agruenba@redhat.com> Cc: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
3decb8564e
commit
4f05f139e3
1 changed files with 1 additions and 2 deletions
|
@ -119,8 +119,7 @@ static void map_buffer_to_folio(struct folio *folio, struct buffer_head *bh,
|
||||||
folio_mark_uptodate(folio);
|
folio_mark_uptodate(folio);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
create_empty_buffers(&folio->page, i_blocksize(inode), 0);
|
head = folio_create_empty_buffers(folio, i_blocksize(inode), 0);
|
||||||
head = folio_buffers(folio);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
page_bh = head;
|
page_bh = head;
|
||||||
|
|
Loading…
Reference in a new issue