f2fs: fix wrong condition to trigger background checkpoint correctly
stable inclusion from stable-v5.10.150 commit cbf2c43b36e0c439fe4c47dd1cec78b18d54e980 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cbf2c43b36e0c439fe4c47dd1cec78b18d54e980 -------------------------------- commit cd6d697a upstream. 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: 493720a4 ("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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Jialin Zhang <zhangjialin11@huawei.com>
Loading
Please sign in to comment