mm: correct page stat API
authortao zeng <tao.zeng@amlogic.com>
Mon, 11 Dec 2017 05:45:31 +0000 (13:45 +0800)
committertao zeng <tao.zeng@amlogic.com>
Mon, 11 Dec 2017 08:34:05 +0000 (16:34 +0800)
PD#156236: mm: correct page stat API

Using mod_zone_page_state instead of __mod_zone_page_state to
avoid SMP warning of __this_cpu_preempt_check

Change-Id: I3f95768beabf5d330d13189d189b32aef39448cd
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
mm/page_isolation.c

index f506442..a82c364 100644 (file)
@@ -185,8 +185,8 @@ int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
        }
 #ifdef CONFIG_AMLOGIC_MODIFY
        if (migratetype == MIGRATE_CMA && page)
-               __mod_zone_page_state(page_zone(page),
-                                     NR_CMA_ISOLATED, end_pfn - start_pfn);
+               mod_zone_page_state(page_zone(page), NR_CMA_ISOLATED,
+                                   end_pfn - start_pfn);
 #endif /* CONFIG_AMLOGIC_MODIFY */
        return 0;
 undo:
@@ -224,8 +224,8 @@ int undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
        }
 #ifdef CONFIG_AMLOGIC_MODIFY
        if (migratetype == MIGRATE_CMA && page)
-               __mod_zone_page_state(page_zone(page),
-                                     NR_CMA_ISOLATED, start_pfn - end_pfn);
+               mod_zone_page_state(page_zone(page), NR_CMA_ISOLATED,
+                                   start_pfn - end_pfn);
 #endif /* CONFIG_AMLOGIC_MODIFY */
        return 0;
 }