From: Uwe Kleine-König Date: Mon, 25 Feb 2008 15:45:03 +0000 (+0100) Subject: let __dec_zone_page_state use __dec_zone_state X-Git-Tag: v2.6.25-rc4~146 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57ce36feb4d1281247755bc445bae77728298955;p=linux-2.6 let __dec_zone_page_state use __dec_zone_state This removes code duplication and makes __dec_zone_page_state look like __inc_zone_page_state. Signed-off-by: Uwe Kleine-König Acked-by: Christoph Lameter Signed-off-by: Linus Torvalds --- diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index 75370ec092..9f1b4b4615 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h @@ -246,8 +246,7 @@ static inline void __dec_zone_state(struct zone *zone, enum zone_stat_item item) static inline void __dec_zone_page_state(struct page *page, enum zone_stat_item item) { - atomic_long_dec(&page_zone(page)->vm_stat[item]); - atomic_long_dec(&vm_stat[item]); + __dec_zone_state(page_zone(page), item); } /*