cleanup AOP_WRITEPAGE_ACTIVATE use in f2fs v2

From: Christoph Hellwig
Date: Thu May 08 2025 - 01:15:41 EST


Hi all,

this almost entirely cleans up usage of AOP_WRITEPAGE_ACTIVATE in f2fs.

Changes since v1:
- pick up the bug fix from Chao as patch 1
- release the folio batch on early exit
- remove the dead for_reclaim handling
- keep the ability of the caller to exit early for the redity case

Diffstat:
fs/f2fs/checkpoint.c | 36 ++++++++----------------
fs/f2fs/compress.c | 3 --
fs/f2fs/data.c | 23 ++-------------
fs/f2fs/file.c | 1
fs/f2fs/node.c | 65 ++++++++++++++++++--------------------------
include/trace/events/f2fs.h | 5 ---
6 files changed, 46 insertions(+), 87 deletions(-)