Re: [RFC 2.6.11-rc2-mm2 7/7] mm: manual page migration -- sys_page_migrate

Paul Jackson
2005-02-12T21:44:48Z

Dave wrote:
> Might it be useful to use nodemasks instead of those arrays?

I don't think he can. A nodemask represents an unorderd set of nodes.
He needs (or wants) to pass a <nid, nid> map, mapping the node that each
page might be on, to the node to which it should migrate. A bitmask
doesn't contain enough information to specify that.

Perhaps instead he could pass two node arguments, old and new, with the
migration routines understanding that they were to migrate only pages
found on the old node, to the new node, ignoring other pages.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373, 1.925.600.0401