patch-2.3.27 linux/net/sunrpc/sysctl.c

Next file: linux/scripts/usb/procusb
Previous file: linux/net/sunrpc/stats.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.26/linux/net/sunrpc/sysctl.c linux/net/sunrpc/sysctl.c
@@ -14,6 +14,7 @@
 #include <linux/ctype.h>
 #include <linux/fs.h>
 #include <linux/sysctl.h>
+#include <linux/module.h>
 
 #include <asm/uaccess.h>
 #include <linux/sunrpc/types.h>
@@ -38,11 +39,9 @@
 {
 	if (!sunrpc_table_header) {
 		sunrpc_table_header = register_sysctl_table(sunrpc_table, 1);
-#ifdef MODULE
 #ifdef CONFIG_PROC_FS
 		if (sunrpc_table[0].de)
-			sunrpc_table[0].de->fill_inode = rpc_modcount;
-#endif
+			sunrpc_table[0].de->owner = THIS_MODULE;
 #endif
 	}
 			

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)