]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: remove non-uptodate folio from the page cache in move_data_block
authorYongpeng Yang <yangyongpeng@xiaomi.com>
Sat, 27 Dec 2025 07:34:31 +0000 (15:34 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 1 Jan 2026 03:30:25 +0000 (03:30 +0000)
commit9609dd704725a40cd63d915f2ab6c44248a44598
tree464f35ad3d62b70bde9e6ec0e7baa6b237558409
parentdb1a8a7813f74968f79bd510fd5f0ae866bf8efd
f2fs: remove non-uptodate folio from the page cache in move_data_block

During data movement, move_data_block acquires file folio without
triggering a file read. Such folio are typically not uptodate, they need
to be removed from the page cache after gc complete. This patch marks
folio with the PG_dropbehind flag and uses folio_end_dropbehind to
remove folio from the page cache.

Signed-off-by: Yunlei He <heyunlei@xiaomi.com>
Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c