]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix wrong condition to trigger background checkpoint correctly
authorChao Yu <chao@kernel.org>
Tue, 28 Sep 2021 19:19:14 +0000 (03:19 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 11 Oct 2021 23:15:23 +0000 (16:15 -0700)
commit205f16b53c4f2cd349fbae2bc09c349a5425725a
treee5858921a4733e3fb7badd674b3a1b9267fcd6da
parent124fb90d3b1cc866ba1bca07cffe369ec2e2686f
f2fs: fix wrong condition to trigger background checkpoint correctly

In f2fs_balance_fs_bg(), it needs to check both NAT_ENTRIES and INO_ENTRIES
memory usage to decide whether we should skip background checkpoint, otherwise
we may always skip checking INO_ENTRIES memory usage, so that INO_ENTRIES may
potentially cause high memory footprint.

Fixes: c1944d5c1f4f ("f2fs: fix to avoid REQ_TIME and CP_TIME collision")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c