f2fs: avoid redundant clean nat entry move in lru list
authorwangzijie <wangzijie1@honor.com>
Mon, 28 Jul 2025 05:02:35 +0000 (13:02 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Jul 2025 16:29:59 +0000 (16:29 +0000)
commit0349b7f95c806ea30d558c7fec9502f4470fb1b6
tree17926f08a9689898c9298ec9d09507140c27d5b6
parent3bf1bab503a58ed7dcfcd399c30ad0b976eb2620
f2fs: avoid redundant clean nat entry move in lru list

__lookup_nat_cache follows LRU manner to move clean nat entry, when nat
entries are going to be dirty, no need to move them to tail of lru list.
Introduce a parameter 'for_dirty' to avoid 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