]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
let __dec_zone_page_state use __dec_zone_state
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Mon, 25 Feb 2008 15:45:03 +0000 (16:45 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 29 Feb 2008 16:36:13 +0000 (08:36 -0800)
This removes code duplication and makes __dec_zone_page_state look like
__inc_zone_page_state.

Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/vmstat.h

index 75370ec0923e40760e5616c9864e34e272703832..9f1b4b46151ebbebe40413a3368c18afa850704c 100644 (file)
@@ -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);
 }
 
 /*