[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130516092746.d838ea18.akpm@linux-foundation.org>
Date: Thu, 16 May 2013 09:27:46 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Oskar Andero <oskar.andero@...ymobile.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
Hugh Dickins <hughd@...gle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Lekanovic, Radovan" <Radovan.Lekanovic@...ymobile.com>,
David Rientjes <rientjes@...gle.com>,
Glauber Costa <glommer@...allels.com>
Subject: Re: [RFC PATCH 0/2] return value from shrinkers
On Thu, 16 May 2013 09:52:05 +0200 Oskar Andero <oskar.andero@...ymobile.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists