mm: vmstat: get slab statistics always from node counters
authorStefan Agner <stefan@agner.ch>
Sun, 6 Aug 2017 23:42:21 +0000 (16:42 -0700)
committerStefan Agner <stefan@agner.ch>
Mon, 7 Aug 2017 06:21:11 +0000 (23:21 -0700)
commit0222b61ea05c452540de7f00534d7d62ab0c1328
tree7a1eb41725683c6d969be697a7542725b92768cc
parent5171f3c71329f443c27d8352eca4c93edafa962f
mm: vmstat: get slab statistics always from node counters

After the move of slab statistics from zone to node counters some
users still try to get the counters from the zone counters. This has
been caught while compiling with clang printing a warning like:

  implicit conversion from enumeration type 'enum node_stat_item' to
  different enumeration type 'enum zone_stat_item' [-Wenum-conversion]

Fixes: 385386cff4 ("mm: vmstat: move slab statistics from zone to node counters")
Signed-off-by: Stefan Agner <stefan@agner.ch>
kernel/power/snapshot.c
mm/page_alloc.c