f2fs: Use bio_for_each_folio_all() in __has_merged_page()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 31 Mar 2025 20:10:25 +0000 (21:10 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Apr 2025 15:18:13 +0000 (15:18 +0000)
commitacede6a57360ec361943c9eb8c4b8d2387af67e9
tree05aa3b7abd61865dc88f48e0be93969356e5ae1b
parent98251710cae1c1b63a05e2975eff4c86d65952ce
f2fs: Use bio_for_each_folio_all() in __has_merged_page()

Iterate over each folio rather than each page.  Convert
f2fs_compress_control_page() to f2fs_compress_control_folio() since
this is the only caller.  Removes a reference to page->mapping which
is going away soon as well as calls to fscrypt_is_bounce_page() and
fscrypt_pagecache_page().

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/compress.c
fs/f2fs/data.c
fs/f2fs/f2fs.h