From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751834AbbJOJ13 (ORCPT ); Thu, 15 Oct 2015 05:27:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:32827 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750880AbbJOJ10 (ORCPT ); Thu, 15 Oct 2015 05:27:26 -0400 Subject: Re: [RFC v2 1/3] migrate: new struct migration and add it to struct page To: Hui Zhu , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , Andrew Morton , "Kirill A. Shutemov" , Mel Gorman , Dave Hansen , Johannes Weiner , Michal Hocko , Konstantin Khlebnikov , Andrea Arcangeli , Alexander Duyck , Tejun Heo , Joonsoo Kim , Naoya Horiguchi , Jennifer Herbert , Hugh Dickins , Vladimir Davydov , David Rientjes , Sasha Levin , "Steven Rostedt (Red Hat)" , "Aneesh Kumar K.V" , Wanpeng Li , Geert Uytterhoeven , Greg Thelen , Al Viro , linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <1444900142-1996-1-git-send-email-zhuhui@xiaomi.com> <1444900142-1996-2-git-send-email-zhuhui@xiaomi.com> Cc: teawater@gmail.com From: Vlastimil Babka Message-ID: <561F7173.3000900@suse.cz> Date: Thu, 15 Oct 2015 11:27:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1444900142-1996-2-git-send-email-zhuhui@xiaomi.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 that Sergey pointed you at: http://lkml.iu.edu/hypermail/linux/kernel/1507.0/03233.html http://lkml.iu.edu/hypermail/linux/kernel/1508.1/00696.html There the operations are reachable via mapping, so we can support the special operations migration also when mapping is otherwise needed; your patch excludes mapping.