On Thu, Apr 15, 2010 at 7:08 PM, Tejun Heo <tj@kernel.org> wrote:
It's no different. It's same. Just naming is more explicit. :)
I think it could be following as.
#define alloc_pages alloc_pages_any_node.
strucdt page * alloc_pages_node() {
int nid = numa_node_id();
...
return page;
}
kill alloc_pages_exact_node?
Sorry but I can't understand your point.
I don't want to kill user of alloc_pages_exact_node.
That's opposite.
I want to kill user of alloc_pages_node and change it with
alloc_pages_any_node or alloc_pages_exact_node. :)
I think we can do it. That's because all of caller already can check nid == -1
before calling allocation function explicitly if he cares node locality.
--
Kind regards,
Minchan Kim
--