|
@@ -198,6 +198,8 @@ extern void __dec_zone_state(struct zone *, enum zone_stat_item);
|
|
void refresh_cpu_vm_stats(int);
|
|
void refresh_cpu_vm_stats(int);
|
|
void refresh_zone_stat_thresholds(void);
|
|
void refresh_zone_stat_thresholds(void);
|
|
|
|
|
|
|
|
+void drain_zonestat(struct zone *zone, struct per_cpu_pageset *);
|
|
|
|
+
|
|
int calculate_pressure_threshold(struct zone *zone);
|
|
int calculate_pressure_threshold(struct zone *zone);
|
|
int calculate_normal_threshold(struct zone *zone);
|
|
int calculate_normal_threshold(struct zone *zone);
|
|
void set_pgdat_percpu_threshold(pg_data_t *pgdat,
|
|
void set_pgdat_percpu_threshold(pg_data_t *pgdat,
|
|
@@ -251,6 +253,8 @@ static inline void __dec_zone_page_state(struct page *page,
|
|
static inline void refresh_cpu_vm_stats(int cpu) { }
|
|
static inline void refresh_cpu_vm_stats(int cpu) { }
|
|
static inline void refresh_zone_stat_thresholds(void) { }
|
|
static inline void refresh_zone_stat_thresholds(void) { }
|
|
|
|
|
|
|
|
+static inline void drain_zonestat(struct zone *zone,
|
|
|
|
+ struct per_cpu_pageset *pset) { }
|
|
#endif /* CONFIG_SMP */
|
|
#endif /* CONFIG_SMP */
|
|
|
|
|
|
static inline void __mod_zone_freepage_state(struct zone *zone, int nr_pages,
|
|
static inline void __mod_zone_freepage_state(struct zone *zone, int nr_pages,
|