patch-2.3.27 linux/fs/binfmt_misc.c
Next file: linux/fs/buffer.c
Previous file: linux/fs/bfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Thu Nov 11 16:57:31 1999
- Orig file:
v2.3.26/linux/fs/binfmt_misc.c
- Orig date:
Fri Sep 10 23:57:36 1999
diff -u --recursive --new-file v2.3.26/linux/fs/binfmt_misc.c linux/fs/binfmt_misc.c
@@ -471,24 +471,6 @@
return 0;
}
-#ifdef MODULE
-/*
- * This is called as the fill_inode function when an inode
- * is going into (fill = 1) or out of service (fill = 0).
- * We use it here to manage the module use counts.
- *
- * Note: only the top-level directory needs to do this; if
- * a lower level is referenced, the parent will be as well.
- */
-static void bm_modcount(struct inode *inode, int fill)
-{
- if (fill)
- MOD_INC_USE_COUNT;
- else
- MOD_DEC_USE_COUNT;
-}
-#endif
-
static int __init init_misc_binfmt(void)
{
int error = -ENOENT;
@@ -497,9 +479,7 @@
bm_dir = create_proc_entry("sys/fs/binfmt_misc", S_IFDIR, NULL);
if (!bm_dir)
goto out;
-#ifdef MODULE
- bm_dir->fill_inode = bm_modcount;
-#endif
+ bm_dir->owner = THIS_MODULE;
status = create_proc_entry("status", S_IFREG | S_IRUGO | S_IWUSR,
bm_dir);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)