]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - mm/migrate.c
mm: remove reclaim and compaction retry approximations
[mirror_ubuntu-hirsute-kernel.git] / mm / migrate.c
index ed2f85e61de13ee825140aadb0270a6bef8f09a8..ed0268268e93f5eac48c02be4737cea269c0fa5a 100644 (file)
@@ -513,7 +513,9 @@ int migrate_page_move_mapping(struct address_space *mapping,
                }
                if (dirty && mapping_cap_account_dirty(mapping)) {
                        __dec_node_state(oldzone->zone_pgdat, NR_FILE_DIRTY);
+                       __dec_zone_state(oldzone, NR_ZONE_WRITE_PENDING);
                        __inc_node_state(newzone->zone_pgdat, NR_FILE_DIRTY);
+                       __inc_zone_state(newzone, NR_ZONE_WRITE_PENDING);
                }
        }
        local_irq_enable();