f2fs: check pinfile in gc_data_segment() in advance
authorChao Yu <chao@kernel.org>
Sun, 20 Mar 2022 15:11:17 +0000 (23:11 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 25 Apr 2022 22:13:02 +0000 (15:13 -0700)
commita22bb5526d7dd627b94a7ee22e5a98c36e39fceb
treebea175551d6d288f9e347410966bf1f3719984c7
parentd615b5416f8a1afeb82d13b238f8152c572d59c0
f2fs: check pinfile in gc_data_segment() in advance

In order to skip migrating section which contains data of pinned
file in advance.

Signed-off-by: Chao Yu <chao.yu@oppo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c