projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm/slub: Use node_nr_slabs and node_nr_objs in get_slabinfo
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
mm
/
slub.c
diff --git
a/mm/slub.c
b/mm/slub.c
index
f788be3
..
5ee6c7c
100644
(file)
--- 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);
}