Commit 4f174a8
slub: Remove slabs_node() function
When traversing nodes one by one, the get_node() function called in
for_each_kmem_cache_node macro, no need to call get_node() again in
slabs_node(), just reading nr_slabs field should be enough. However, the
node_nr_slabs() function can do this. Hence, the slabs_node() function
is not needed anymore.
Signed-off-by: Xiongwei Song <xiongwei.song@windriver.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>1 parent c6c17c4 commit 4f174a8
1 file changed
Lines changed: 3 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1344 | 1344 | | |
1345 | 1345 | | |
1346 | 1346 | | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | 1347 | | |
1356 | 1348 | | |
1357 | 1349 | | |
| |||
1722 | 1714 | | |
1723 | 1715 | | |
1724 | 1716 | | |
1725 | | - | |
1726 | | - | |
1727 | 1717 | | |
1728 | 1718 | | |
1729 | 1719 | | |
| |||
4598 | 4588 | | |
4599 | 4589 | | |
4600 | 4590 | | |
4601 | | - | |
| 4591 | + | |
4602 | 4592 | | |
4603 | 4593 | | |
4604 | 4594 | | |
| |||
4615 | 4605 | | |
4616 | 4606 | | |
4617 | 4607 | | |
4618 | | - | |
| 4608 | + | |
4619 | 4609 | | |
4620 | 4610 | | |
4621 | 4611 | | |
| |||
4828 | 4818 | | |
4829 | 4819 | | |
4830 | 4820 | | |
4831 | | - | |
| 4821 | + | |
4832 | 4822 | | |
4833 | 4823 | | |
4834 | 4824 | | |
| |||
0 commit comments