f2fs: Use a folio in commit_checkpoint()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 31 Mar 2025 20:10:31 +0000 (21:10 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Apr 2025 15:22:43 +0000 (15:22 +0000)
commit668c7a564823a825a87924c87147d202580c293c
treedc5cf896abd39f327c53a7fabe6f59ff120023b1
parentb15ca18571578f776782b7347831cf14a57e8018
f2fs: Use a folio in commit_checkpoint()

Save four calls to compound_head().  Also remove the call
to f2fs_wait_on_page_writeback() as this was already done by
f2fs_grab_meta_folio() and writeback can't have restarted in the
meantime since we hold the folio locked.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c