diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-01-29 01:41:54 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-01-29 01:41:54 +0000 |
commit | f969d69ba9f952e5bdd38278e25e26a3e4a61a70 (patch) | |
tree | b3530d803df59d726afaabebc6626987dee1ca05 /fs/binfmt_misc.c | |
parent | a10ce7ef2066b455d69187643ddf2073bfc4db24 (diff) |
Merge with 2.3.27.
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r-- | fs/binfmt_misc.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 6143bd5d0..358890dbd 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c @@ -471,24 +471,6 @@ static int entry_proc_setup(struct binfmt_entry *e) 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 @@ static int __init init_misc_binfmt(void) 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); |