linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] deprecate use of bdflush()
@ 2002-12-02 21:21 Robert Love
  2002-12-02 22:11 ` Andrew Morton
  0 siblings, 1 reply; 12+ messages in thread
From: Robert Love @ 2002-12-02 21:21 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

We can never get rid of it if we do not deprecate it - so do so and
print a stern warning to those who still run bdflush daemons.

Patch is against 2.5.49-mm2.  Please apply.

	Robert Love


 fs/buffer.c |    6 ++++++
 1 files changed, 6 insertions(+)


diff -urN linux-2.5.49-mm2/fs/buffer.c linux/fs/buffer.c
--- linux-2.5.49-mm2/fs/buffer.c	2002-12-02 16:07:53.000000000 -0500
+++ linux/fs/buffer.c	2002-12-02 16:17:16.000000000 -0500
@@ -2757,11 +2757,17 @@
 /*
  * There are no bdflush tunables left.  But distributions are
  * still running obsolete flush daemons, so we terminate them here.
+ *
+ * Use of bdflush() is deprecated and will be removed in a future kernel.
+ * The `pdflush' kernel threads fully replace bdflush daemons and this call.
  */
 asmlinkage long sys_bdflush(int func, long data)
 {
 	if (!capable(CAP_SYS_ADMIN))
 		return -EPERM;
+
+	printk(KERN_WARNING "warning: the bdflush system call is deprecated "
+			 "and no longer needed.  Stop using it.\n");
 	if (func == 1)
 		do_exit(0);
 	return 0;




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-12-05 17:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-02 21:21 [PATCH] deprecate use of bdflush() Robert Love
2002-12-02 22:11 ` Andrew Morton
2002-12-02 22:26   ` Robert Love
2002-12-03 14:24     ` Bill Davidsen
2002-12-03 17:10       ` Robert Love
2002-12-03 19:05         ` Paul Gortmaker
2002-12-04  1:12           ` Krzysztof Halasa
2002-12-04 16:11             ` Robert Love
2002-12-04 13:10         ` Daniel Kobras
2002-12-04 16:12           ` Robert Love
2002-12-04 19:29             ` Daniel Kobras
2002-12-05 17:39             ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).