summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWanpeng Li <liwanp@linux.vnet.ibm.com>2013-07-04 08:33:26 +0800
committerPekka Enberg <penberg@kernel.org>2013-07-07 18:37:48 +0300
commitc17fd13ec0677e61f3692ecb9d4b21f79848fa04 (patch)
treea92f80d3ac409bfb812058a5d806a20a4a88ff60
parenta446336454cf9ce3234a6013d1c3b482358d9459 (diff)
downloadblackbird-op-linux-c17fd13ec0677e61f3692ecb9d4b21f79848fa04.tar.gz
blackbird-op-linux-c17fd13ec0677e61f3692ecb9d4b21f79848fa04.zip
mm/slub: Use node_nr_slabs and node_nr_objs in get_slabinfo
Use existing interface node_nr_slabs and node_nr_objs to get nr_slabs and nr_objs. Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--mm/slub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index f788be3a0b12..5ee6c7cd9fc4 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -5277,8 +5277,8 @@ void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo)
if (!n)
continue;
- nr_slabs += atomic_long_read(&n->nr_slabs);
- nr_objs += atomic_long_read(&n->total_objects);
+ nr_slabs += node_nr_slabs(n);
+ nr_objs += node_nr_objs(n);
nr_free += count_partial(n, count_free);
}
OpenPOWER on IntegriCloud