All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.7-rc3] nr_free_files ?
@ 2004-06-08 21:04 FabF
  2004-06-08 21:17 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: FabF @ 2004-06-08 21:04 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

Andrew,

	Here's a patch removing nr_free_files.This one is unused in the whole
tree + file-nr was tri-int exposed in /proc.This patch gives file-nr
simple integer as file-max.Could you apply if this doesn't break
historical features ?

Regards,
FabF

[-- Attachment #2: filenr1.diff --]
[-- Type: text/x-patch, Size: 868 bytes --]

diff -Naur orig/include/linux/fs.h edited/include/linux/fs.h
--- orig/include/linux/fs.h	2004-06-08 00:04:43.000000000 +0200
+++ edited/include/linux/fs.h	2004-06-08 22:50:36.000000000 +0200
@@ -49,7 +49,6 @@
 /* And dynamically-tunable limits and defaults: */
 struct files_stat_struct {
 	int nr_files;		/* read only */
-	int nr_free_files;	/* read only */
 	int max_files;		/* tunable */
 };
 extern struct files_stat_struct files_stat;
diff -Naur orig/kernel/sysctl.c edited/kernel/sysctl.c
--- orig/kernel/sysctl.c	2004-06-08 00:04:44.000000000 +0200
+++ edited/kernel/sysctl.c	2004-06-08 22:53:09.000000000 +0200
@@ -822,8 +822,8 @@
 	{
 		.ctl_name	= FS_NRFILE,
 		.procname	= "file-nr",
-		.data		= &files_stat,
-		.maxlen		= 3*sizeof(int),
+		.data		= &files_stat.nr_files,
+		.maxlen		= sizeof(int),
 		.mode		= 0444,
 		.proc_handler	= &proc_dointvec,
 	},

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

end of thread, other threads:[~2004-06-12 13:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-08 21:04 [PATCH 2.6.7-rc3] nr_free_files ? FabF
2004-06-08 21:17 ` Andrew Morton
2004-06-08 22:19   ` Chris Wedgwood
2004-06-12 13:56     ` FabF

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.