Commit 57ce36fe authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Linus Torvalds

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: default avatarUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Acked-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 83afdf24
...@@ -246,8 +246,7 @@ static inline void __dec_zone_state(struct zone *zone, enum zone_stat_item item) ...@@ -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, static inline void __dec_zone_page_state(struct page *page,
enum zone_stat_item item) enum zone_stat_item item)
{ {
atomic_long_dec(&page_zone(page)->vm_stat[item]); __dec_zone_state(page_zone(page), item);
atomic_long_dec(&vm_stat[item]);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment