diff options
author | Tejun Heo <tj@kernel.org> | 2009-03-06 14:33:59 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-03-06 14:33:59 +0900 |
commit | 61ace7fa2fff9c4b6641c506b6b3f1a9394a1b11 (patch) | |
tree | 214d0e04227239c31f93ba6948cf58d67cfedcee /fs | |
parent | 2441d15c97d498b18f03ae9fba262ffeae42a08b (diff) |
percpu: improve first chunk initial area map handling
Impact: no functional change
When the first chunk is created, its initial area map is not allocated
because kmalloc isn't online yet. The map is allocated and
initialized on the first allocation request on the chunk. This works
fine but the scattering of initialization logic between the init
function and allocation path is a bit confusing.
This patch makes the first chunk initialize and use minimal statically
allocated map from pcpu_setpu_first_chunk(). The map resizing path
still needs to handle this specially but it's more straight-forward
and gives more latitude to the init path. This will ease future
changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions