From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: viro@math.psu.edu, rddunlap@att.net, jack@suse.cz,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: PATCH 2.4.5.3: quota initcall
Date: Fri, 18 May 2001 16:03:15 -0400 [thread overview]
Message-ID: <3B058003.81A01B77@mandrakesoft.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 454 bytes --]
IMHO this is an obvious change, but it is untested... dquot_hash and
dqstats are correctly declared static and in BSS, and thus are
automatically cleared at kernel startup.
Since quota init now just printk's a startup message, we can safely make
it an initcall.
--
Jeff Garzik | "Do you have to make light of everything?!"
Building 1024 | "I'm extremely serious about nailing your
MandrakeSoft | step-daughter, but other than that, yes."
[-- Attachment #2: quota-initcall-2.4.5.3.patch --]
[-- Type: text/plain, Size: 979 bytes --]
Index: linux_2_4/fs/dquot.c
diff -u linux_2_4/fs/dquot.c:1.1.1.50 linux_2_4/fs/dquot.c:1.1.1.50.4.1
--- linux_2_4/fs/dquot.c:1.1.1.50 Tue May 15 04:36:48 2001
+++ linux_2_4/fs/dquot.c Fri May 18 12:55:25 2001
@@ -1343,13 +1343,11 @@
}
-void __init dquot_init_hash(void)
+static int __init dquot_init(void)
{
printk(KERN_NOTICE "VFS: Diskquotas version %s initialized\n", __DQUOT_VERSION__);
-
- memset(dquot_hash, 0, sizeof(dquot_hash));
- memset((caddr_t)&dqstats, 0, sizeof(dqstats));
}
+__initcall(dquot_init);
/*
* Definitions of diskquota operations.
Index: linux_2_4/init/main.c
diff -u linux_2_4/init/main.c:1.1.1.62 linux_2_4/init/main.c:1.1.1.62.4.1
--- linux_2_4/init/main.c:1.1.1.62 Tue May 15 04:37:56 2001
+++ linux_2_4/init/main.c Fri May 18 12:55:25 2001
@@ -108,9 +108,6 @@
#if defined(CONFIG_SYSVIPC)
extern void ipc_init(void);
#endif
-#if defined(CONFIG_QUOTA)
-extern void dquot_init_hash(void);
-#endif
/*
* Boot command-line arguments
next reply other threads:[~2001-05-18 20:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-18 20:03 Jeff Garzik [this message]
2001-05-18 20:20 ` PATCH 2.4.5.3 (try 2): quota initcall Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B058003.81A01B77@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jack@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@att.net \
--cc=torvalds@transmeta.com \
--cc=viro@math.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.