f2fs: directly add newly allocated pre-dirty nat entry to dirty set list
authorwangzijie <wangzijie1@honor.com>
Mon, 28 Jul 2025 05:02:36 +0000 (13:02 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Jul 2025 16:30:02 +0000 (16:30 +0000)
commit40aa9e1223fd38e65ac72373e642c7638a3b4752
treec20bfefeea4c07ecf18e00389122dc06da8237a6
parent0349b7f95c806ea30d558c7fec9502f4470fb1b6
f2fs: directly add newly allocated pre-dirty nat entry to dirty set list

When we need to alloc nat entry and set it dirty, we can directly add it to
dirty set list(or initialize its list_head for new_ne) instead of adding it
to clean list and make a move. Introduce init_dirty flag to do it.

Signed-off-by: wangzijie <wangzijie1@honor.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c