Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754964Ab3EPQ1y (ORCPT ); Thu, 16 May 2013 12:27:54 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42298 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753919Ab3EPQ1x (ORCPT ); Thu, 16 May 2013 12:27:53 -0400 Date: Thu, 16 May 2013 09:27:46 -0700 From: Andrew Morton To: Oskar Andero Cc: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Hugh Dickins , Greg Kroah-Hartman , "Lekanovic, Radovan" , David Rientjes , Glauber Costa Subject: Re: [RFC PATCH 0/2] return value from shrinkers Message-Id: <20130516092746.d838ea18.akpm@linux-foundation.org> In-Reply-To: <20130516075205.GD24072@caracas.corpusers.net> References: <1368454595-5121-1-git-send-email-oskar.andero@sonymobile.com> <20130515160532.c965e92707c354100e25f79b@linux-foundation.org> <20130516075205.GD24072@caracas.corpusers.net> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.9; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 956 Lines: 19 On Thu, 16 May 2013 09:52:05 +0200 Oskar Andero wrote: > > If we want the capability to return more than a binary yes/no message > > to callers then yes, we could/should enumerate the shrinker return > > values. But as that is a different concept from errnos, it should be > > done with a different and shrinker-specific namespace. > > Agreed, but even if there right now is only a binary return message, is a > hardcoded -1 considered to be acceptable for an interface? IMHO, it is not > very readable nor intuitive for the users of the interface. Why not, as you > mention, add a define or enum in shrinker.h instead, e.g. SHRINKER_STOP or > something. That sounds OK to me. -- 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/