diff options
| author | Chen Ridong <chenridong@huawei.com> | 2025-08-25 03:23:51 +0000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-08-25 08:19:57 -1000 |
| commit | ada00d51622822b151e1b8cc2bc85a20d2191349 (patch) | |
| tree | dba0a8a0dfbd41ac5864a07aa214f27af49be89a /rust/helpers/helpers.c | |
| parent | 5806b3d05165568eee665399d3c04349c151a0b9 (diff) | |
cpuset: separate tmpmasks and cpuset allocation logic
The original alloc_cpumasks() served dual purposes: allocating cpumasks
for both temporary masks (tmpmasks) and cpuset structures. This patch:
1. Decouples these allocation paths for better code clarity
2. Introduces dedicated alloc_tmpmasks() and dup_or_alloc_cpuset()
functions
3. Maintains symmetric pairing:
- alloc_tmpmasks() ↔ free_tmpmasks()
- dup_or_alloc_cpuset() ↔ free_cpuset()
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
