From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx188.postini.com [74.125.245.188]) by kanga.kvack.org (Postfix) with SMTP id 631DB6B0037 for ; Tue, 30 Jul 2013 10:47:28 -0400 (EDT) Message-ID: <51F7D1F0.20309@intel.com> Date: Tue, 30 Jul 2013 07:47:12 -0700 From: Dave Hansen MIME-Version: 1.0 Subject: Re: [PATCH resend] drop_caches: add some documentation and info message References: <1374842669-22844-1-git-send-email-mhocko@suse.cz> <20130729135743.c04224fb5d8e64b2730d8263@linux-foundation.org> <20130730074531.GA10584@dhcp22.suse.cz> <20130730012544.2f33ebf6.akpm@linux-foundation.org> <20130730125525.GB15847@dhcp22.suse.cz> In-Reply-To: <20130730125525.GB15847@dhcp22.suse.cz> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kosaki.motohiro@jp.fujitsu.com, kamezawa.hiroyu@jp.fujitsu.com, bp@suse.de, Dave Hansen On 07/30/2013 05:55 AM, Michal Hocko wrote: >> > If we add another flag in the future it can use bit 3? > What if we get crazy and need more of them? I really hate using bits for these kinds of interfaces. I'm forgetful and never remember which bit is which, and they're possible to run out of. I'm not saying do it now, but we can switch over to: echo 'slab|pagecache' > drop_caches or echo 'quiet|slab' > drop_caches any time we want and still have compatibility with the existing bitwise interface. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org