f2fs: remove struct victim_selection default_v_ops
authorYangtao Li <frank.li@vivo.com>
Tue, 4 Apr 2023 04:00:51 +0000 (12:00 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 10 Apr 2023 17:58:44 +0000 (10:58 -0700)
commit19e0e21a51183d4e0784602f27e4db7b965077be
tree102d6179ae9eba6ec6a34a1e8f781d06fbae4d2d
parentda6ea0b050fa720302b56fbb59307e7c7531a342
f2fs: remove struct victim_selection default_v_ops

There is only single instance of these ops, and Jaegeuk point out that:

    Originally this was intended to give a chance to provide other
    allocation option. Anyway, it seems quit hard to do it anymore.

So remove the indirection and call f2fs_get_victim() directly.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/segment.c
fs/f2fs/segment.h