]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: Use folios in do_garbage_collect()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 31 Mar 2025 20:11:00 +0000 (21:11 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Apr 2025 15:26:31 +0000 (15:26 +0000)
commit5d895f7beae94f875573e1408d129795077ae20f
treeb77c25fd62a6c1f3929d0472f14e547a7308a566
parent4a2c49d2cbb92706ba0f03f034c7c712c37d72ce
f2fs: Use folios in do_garbage_collect()

Get a folio instead of a page and operate on folios throughout.
Remove six calls to compound_head() and use folio_put_refs() to put
both references we hold at the same time, reducing the number of atomic
operations we do.

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/gc.c