Re: [RFC v2 1/3] migrate: new struct migration and add it to struct page

2015-10-19 Thread Hui Zhu
On Thu, Oct 15, 2015 at 5:53 PM, Minchan Kim wrote: > On Thu, Oct 15, 2015 at 11:27:15AM +0200, Vlastimil Babka wrote: >> On 10/15/2015 11:09 AM, Hui Zhu wrote: >> >I got that add function interfaces is really not a good idea. >> >So I add a new struct migration to put all migration interfaces and

Re: [RFC v2 1/3] migrate: new struct migration and add it to struct page

2015-10-15 Thread Minchan Kim
On Thu, Oct 15, 2015 at 11:27:15AM +0200, Vlastimil Babka wrote: > On 10/15/2015 11:09 AM, Hui Zhu wrote: > >I got that add function interfaces is really not a good idea. > >So I add a new struct migration to put all migration interfaces and add > >this struct to struct page as union of "mapping".

Re: [RFC v2 1/3] migrate: new struct migration and add it to struct page

2015-10-15 Thread Vlastimil Babka
On 10/15/2015 11:09 AM, Hui Zhu wrote: I got that add function interfaces is really not a good idea. So I add a new struct migration to put all migration interfaces and add this struct to struct page as union of "mapping". That's better, but not as flexible as the previously proposed approaches