From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH v11 1/7] mm: adjust address_space_operations.migratepage() return code Date: Wed, 7 Nov 2012 11:56:10 -0800 Message-ID: <20121107115610.c0cb650c.akpm@linux-foundation.org> References: <74bc30697313206e1225f6fc658bc5952b588dcc.1352256085.git.aquini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <74bc30697313206e1225f6fc658bc5952b588dcc.1352256085.git.aquini@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Rafael Aquini Cc: Rik van Riel , Konrad Rzeszutek Wilk , "Michael S. Tsirkin" , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-mm@kvack.org, Peter Zijlstra , Andi Kleen , Minchan Kim , "Paul E. McKenney" List-Id: virtualization@lists.linuxfoundation.org On Wed, 7 Nov 2012 01:05:48 -0200 Rafael Aquini wrote: > This patch introduces MIGRATEPAGE_SUCCESS as the default return code > for address_space_operations.migratepage() method and documents the > expected return code for the same method in failure cases. I hit a large number of rejects applying this against linux-next. Due to the increasingly irritating sched/numa code in there. I attempted to fix it up and also converted some (but not all) of the implicit tests of `rc' against zero. Please check the result very carefully - more changes will be needed. All those - if (rc) + if (rc != MIGRATEPAGE_SUCCESS) changes are a pain. Perhaps we shouldn't bother.