Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757366Ab0BKXid (ORCPT ); Thu, 11 Feb 2010 18:38:33 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:39686 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755775Ab0BKXib (ORCPT ); Thu, 11 Feb 2010 18:38:31 -0500 Date: Thu, 11 Feb 2010 15:37:24 -0800 From: Andrew Morton To: David Rientjes Cc: Rik van Riel , KAMEZAWA Hiroyuki , Nick Piggin , Andrea Arcangeli , Balbir Singh , Lubos Lunak , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch 4/7 -mm] oom: badness heuristic rewrite Message-Id: <20100211153724.d4a3e2aa.akpm@linux-foundation.org> In-Reply-To: References: <4B73833D.5070008@redhat.com> <20100211134343.4886499c.akpm@linux-foundation.org> <20100211143105.dea3861a.akpm@linux-foundation.org> <20100211151135.91586cd1.akpm@linux-foundation.org> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-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: 788 Lines: 19 On Thu, 11 Feb 2010 15:31:14 -0800 (PST) David Rientjes wrote: > > There _are_ things we can do though. Detect a write to the old file and > > emit a WARN_ON_ONCE("you suck"). Wait a year, turn it into > > WARN_ON("you really suck"). Wait a year, then remove it. > > > > Ok, I'll use WARN_ON_ONCE() to let the user know of the deprecation and > then add an entry to Documentation/feature-removal-schedule.txt. A printk_once() would be better - WARN() generates a big stack spew which often is wholly irrelevant. -- 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/