]> Pileus Git - ~andy/linux/blobdiff - mm/internal.h
ip6tnl/sit: drop packet if ECN present with not-ECT
[~andy/linux] / mm / internal.h
index f5f295fe11e1af302e84e5d0b1a803ea35982ac7..a4fa284f6bc213300942e2006b2161c73ffc2af7 100644 (file)
@@ -180,7 +180,8 @@ static inline int mlocked_vma_newpage(struct vm_area_struct *vma,
                return 0;
 
        if (!TestSetPageMlocked(page)) {
-               inc_zone_page_state(page, NR_MLOCK);
+               mod_zone_page_state(page_zone(page), NR_MLOCK,
+                                   hpage_nr_pages(page));
                count_vm_event(UNEVICTABLE_PGMLOCKED);
        }
        return 1;