Commit 8040cbf
slub: Don't read nr_slabs and total_objects directly
We have node_nr_slabs() to read nr_slabs, node_nr_objs() to read
total_objects in a kmem_cache_node, so no need to access the two
members directly.
Signed-off-by: Xiongwei Song <xiongwei.song@windriver.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>1 parent 4f174a8 commit 8040cbf
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | | - | |
| 5161 | + | |
5162 | 5162 | | |
5163 | 5163 | | |
5164 | 5164 | | |
| |||
5442 | 5442 | | |
5443 | 5443 | | |
5444 | 5444 | | |
5445 | | - | |
| 5445 | + | |
5446 | 5446 | | |
5447 | | - | |
5448 | | - | |
| 5447 | + | |
5449 | 5448 | | |
5450 | | - | |
| 5449 | + | |
5451 | 5450 | | |
5452 | 5451 | | |
5453 | 5452 | | |
| |||
6386 | 6385 | | |
6387 | 6386 | | |
6388 | 6387 | | |
6389 | | - | |
| 6388 | + | |
6390 | 6389 | | |
6391 | 6390 | | |
6392 | 6391 | | |
| |||
0 commit comments