diff options
author | Tejun Heo | 2009-03-07 00:44:09 +0900 |
---|---|---|
committer | Tejun Heo | 2009-03-07 00:44:09 +0900 |
commit | 9f7dcf224bd09ec9ebcbfb383bf2c465e0e0b03d (patch) | |
tree | 9e8b07047080fbdb4f4c8f1554d5208570e64fe2 /.mailmap | |
parent | 1880d93b80acc3171850e9df5048bcb26b75c2f5 (diff) |
percpu: move chunk area map extension out of area allocation
Impact: code reorganization for later changes
Separate out chunk area map extension into a separate function -
pcpu_extend_area_map() - and call it directly from pcpu_alloc() such
that pcpu_alloc_area() is guaranteed to have enough area map slots on
invocation.
With this change, pcpu_alloc_area() does only area allocation and the
only failure mode is when the chunk doens't have enough room, so
there's no need to distinguish it from memory allocation failures.
Make it return -1 on such cases instead of hacky -ENOSPC.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions