patch-2.2.2 linux/fs/coda/sysctl.c
Next file: linux/fs/hfs/ChangeLog
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Sat Feb 6 12:46:21 1999
- Orig file:
v2.2.1/linux/fs/coda/sysctl.c
- Orig date:
Tue Dec 22 14:16:57 1998
diff -u --recursive --new-file v2.2.1/linux/fs/coda/sysctl.c linux/fs/coda/sysctl.c
@@ -24,6 +24,8 @@
#include <asm/segment.h>
#include <asm/uaccess.h>
#include <linux/utsname.h>
+#define __NO_VERSION__
+#include <linux/module.h>
#include <linux/coda.h>
#include <linux/coda_linux.h>
@@ -491,6 +493,14 @@
coda_cache_inv_stats_get_info
};
+static void coda_proc_modcount(struct inode *inode, int fill)
+{
+ if (fill)
+ MOD_INC_USE_COUNT;
+ else
+ MOD_DEC_USE_COUNT;
+}
+
#endif
@@ -504,6 +514,7 @@
#ifdef CONFIG_PROC_FS
proc_register(&proc_root_fs,&proc_fs_coda);
+ proc_fs_coda.fill_inode = &coda_proc_modcount;
proc_register(&proc_fs_coda,&proc_coda_vfs);
proc_register(&proc_fs_coda,&proc_coda_upcall);
proc_register(&proc_fs_coda,&proc_coda_permission);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)