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

Next file: linux/net/sunrpc/sysctl.c
Previous file: linux/net/irda/irproc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.26/linux/net/sunrpc/stats.c linux/net/sunrpc/stats.c
@@ -164,9 +164,7 @@
 		struct proc_dir_entry *ent;
 		ent = create_proc_entry("net/rpc", S_IFDIR, 0);
 		if (ent) {
-#ifdef MODULE
-			ent->fill_inode = rpc_modcount;
-#endif
+			ent->owner = THIS_MODULE;
 			proc_net_rpc = ent;
 		}
 	}
@@ -183,21 +181,6 @@
 }
 
 #ifdef MODULE
-/*
- * This is called as the proc_dir_entry fill_inode function
- * when an inode is going into or out of service (fill == 1
- * or 0 respectively).
- *
- * We use it here to keep the module from being unloaded
- * while /proc inodes are in use.
- */
-void rpc_modcount(struct inode *inode, int fill)
-{
-	if (fill)
-		MOD_INC_USE_COUNT;
-	else
-		MOD_DEC_USE_COUNT;
-}
 
 int
 init_module(void)

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