Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759179Ab2FFWvE (ORCPT ); Wed, 6 Jun 2012 18:51:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47390 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754497Ab2FFWvA (ORCPT ); Wed, 6 Jun 2012 18:51:00 -0400 Date: Wed, 6 Jun 2012 15:50:56 -0700 From: Andrew Morton To: Wanpeng Li Cc: Fengguang Wu , Rob Landley , Alexander Viro , "Eric W.Biederman" , Lucas De Marchi , "David S. Miller" , Jan Kara , Mel Gorman , Minchan Kim , James Morris , Ingo Molnar , Michel Lespinasse , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Gavin Shan , Wanpeng Li Subject: Re: [PATCH v4] remove no longer use of pdflush interface Message-Id: <20120606155056.72a6a2b5.akpm@linux-foundation.org> In-Reply-To: <1338989888-3480-1-git-send-email-liwp.linux@gmail.com> References: <1338989888-3480-1-git-send-email-liwp.linux@gmail.com> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; 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: 1287 Lines: 37 On Wed, 6 Jun 2012 21:38:08 +0800 Wanpeng Li wrote: > From: Wanpeng Li > > Since per-BDI flusher introduced to linux 2.6, pdflush mechanism is not > used any more. But the old interface of pdflush exported in/proc/sys/vm/ > is still there. In order to take attention to back-compatibility issues, > printk warning information and return -ENOSYS to notice the users the > interface is removed. > > ... > > +/* notice associated proc obsoleted */ This comment is pretty meaningless - I suggest simply removing it. > +int pdflush_proc_obsolete(struct ctl_table *table, int write, > + void __user *buffer, size_t *lenp, loff_t *ppos) > +{ > + printk_once(KERN_WARNING "%s exported in /proc is scheduled for removal\n", > + table->procname); > + return -ENOSYS; > +} No, this immediately breaks /proc/sys/vm/nr_pdflush_threads users. To preserve back-compatibility we should copy "0\n" out to userspace and return 2. > +EXPORT_SYMBOL(pdflush_proc_obsolete); This export isn't needed? -- 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/