Commit 32cf9f2
committed
slab: use struct freelist_counters for local variables instead of struct slab
In several functions we declare local struct slab variables so we can
work with the freelist and counters fields (including the sub-counters
that are in the union) comfortably.
With struct freelist_counters containing the full counters definition,
we can now reduce the local variables to that type as we don't need the
other fields in struct slab.
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>1 parent 3993ca9 commit 32cf9f2
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3725 | 3725 | | |
3726 | 3726 | | |
3727 | 3727 | | |
3728 | | - | |
3729 | | - | |
| 3728 | + | |
3730 | 3729 | | |
3731 | 3730 | | |
3732 | 3731 | | |
| |||
4390 | 4389 | | |
4391 | 4390 | | |
4392 | 4391 | | |
4393 | | - | |
| 4392 | + | |
4394 | 4393 | | |
4395 | 4394 | | |
4396 | 4395 | | |
| |||
4418 | 4417 | | |
4419 | 4418 | | |
4420 | 4419 | | |
4421 | | - | |
| 4420 | + | |
4422 | 4421 | | |
4423 | 4422 | | |
4424 | 4423 | | |
| |||
5867 | 5866 | | |
5868 | 5867 | | |
5869 | 5868 | | |
5870 | | - | |
| 5869 | + | |
5871 | 5870 | | |
5872 | 5871 | | |
5873 | 5872 | | |
| |||
0 commit comments