PG_mappedtodisk is a normal flag for file page cache folios, so it does not belong in the WARN_ON listing flags incompatible with a cache charge.
https://virtuozzo.atlassian.net/browse/VSTOR-134021 Fixes: 0ad1e82744aba ("mm: Memory cgroup page cache limit") Feature: mm: Memory cgroup page cache limit Reported-by: Konstantin Khorenko <[email protected]> Signed-off-by: Pavel Tikhomirov <[email protected]> --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index c6c45d4351dd0..6301319529ee0 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -5661,7 +5661,7 @@ void mem_cgroup_replace_folio(struct folio *old, struct folio *new) */ WARN_ON(folio_test_slab(new) || folio_test_swapcache(new) || folio_test_anon(new) || folio_test_swapbacked(new) || - folio_test_ksm(new) || folio_test_mappedtodisk(new)); + folio_test_ksm(new)); } css_get(&memcg->css); -- 2.54.0 _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
