]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: Convert f2fs_finish_read_bio() to use folios
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 28 Nov 2024 04:58:22 +0000 (04:58 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 16 Dec 2024 16:12:13 +0000 (16:12 +0000)
commite0821645dd2d79180418dd9389e3e9e7e10e7281
treee1c1b7c3acba8c128f12ee1eef90c141ad79a179
parent1cf746007005593aa51395302ca0d31814f4ce42
f2fs: Convert f2fs_finish_read_bio() to use folios

Use bio_for_each_folio_all() to iterate over each folio in the bio.
This lets us use folio_end_read() which saves an atomic operation and
memory barrier compared to marking the folio uptodate and unlocking
it as two separate operations.  This also removes a few 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>
fs/f2fs/data.c