percpu: misc preparations for nommu support
authorTejun Heo <tj@kernel.org>
Fri, 9 Apr 2010 09:57:01 +0000 (18:57 +0900)
committerTejun Heo <tj@kernel.org>
Sat, 1 May 2010 06:30:50 +0000 (08:30 +0200)
commit88999a898b565960690f18e4a13a1e8a9fa4dfef
tree41184a2e2e5f1b29e07c4577ee9aa74242b563bc
parent6081089fd6f216b0eb8849205ad0c350cd5ed9bc
percpu: misc preparations for nommu support

Make the following misc preparations for percpu nommu support.

* Remove refernces to vmalloc in common comments as nommu percpu won't
  use it.

* Rename chunk->vms to chunk->data and make it void *.  Its use is
  determined by chunk management implementation.

* Relocate utility functions and add __maybe_unused to functions which
  might not be used by different chunk management implementations.

This patch doesn't cause any functional change.  This is to allow
alternate chunk management implementation for percpu nommu support.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Cc: Graff Yang <graff.yang@gmail.com>
Cc: Sonic Zhang <sonic.adi@gmail.com>
mm/percpu.c