Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756406Ab3EUH1r (ORCPT ); Tue, 21 May 2013 03:27:47 -0400 Received: from mx2.parallels.com ([199.115.105.18]:34457 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756250Ab3EUH1q (ORCPT ); Tue, 21 May 2013 03:27:46 -0400 Message-ID: <519B2224.50105@parallels.com> Date: Tue, 21 May 2013 11:28:36 +0400 From: Glauber Costa User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 MIME-Version: 1.0 To: Pekka Enberg CC: Oskar Andero , LKML , "linux-mm@kvack.org" , Radovan Lekanovic , David Rientjes , Glauber Costa , Dave Chinner , Andrew Morton , "Hugh Dickins" , Greg Kroah-Hartman Subject: Re: [PATCH v2] mm: vmscan: add VM_BUG_ON on illegal return values from scan_objects References: <1369120410-18180-1-git-send-email-oskar.andero@sonymobile.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 582 Lines: 14 On 05/21/2013 11:17 AM, Pekka Enberg wrote: > It seems to me relaxing the shrinker API restrictions and changing the > "ret == -1" to "ret < 0" would be a much more robust approach... Dave had already spoken against it, and I agree with him Anybody returning any negative value different than -1 is definitely doing something strange -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/