mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
f2fs: Use a folio in f2fs_update_meta_page()
Grab a folio instead of a page. Saves two hidden calls to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
9c6b0f120e
commit
5c1b57bb83
|
|
@ -2693,11 +2693,11 @@ struct page *f2fs_get_sum_page(struct f2fs_sb_info *sbi, unsigned int segno)
|
|||
void f2fs_update_meta_page(struct f2fs_sb_info *sbi,
|
||||
void *src, block_t blk_addr)
|
||||
{
|
||||
struct page *page = f2fs_grab_meta_page(sbi, blk_addr);
|
||||
struct folio *folio = f2fs_grab_meta_folio(sbi, blk_addr);
|
||||
|
||||
memcpy(page_address(page), src, PAGE_SIZE);
|
||||
set_page_dirty(page);
|
||||
f2fs_put_page(page, 1);
|
||||
memcpy(folio_address(folio), src, PAGE_SIZE);
|
||||
folio_mark_dirty(folio);
|
||||
f2fs_folio_put(folio, true);
|
||||
}
|
||||
|
||||
static void write_sum_page(struct f2fs_sb_info *sbi,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user