From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 18 May 2001 16:20:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 18 May 2001 16:20:35 -0400 Received: from panic.ohr.gatech.edu ([130.207.47.194]:3474 "HELO havoc.gtf.org") by vger.kernel.org with SMTP id ; Fri, 18 May 2001 16:20:20 -0400 Message-ID: <3B0583FF.D25F4379@mandrakesoft.com> Date: Fri, 18 May 2001 16:20:15 -0400 From: Jeff Garzik Organization: MandrakeSoft X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.5-pre3 i686) X-Accept-Language: en MIME-Version: 1.0 To: Linus Torvalds Cc: viro@math.psu.edu, rddunlap@att.net, jack@suse.cz, Alan Cox , Linux Kernel Mailing List Subject: PATCH 2.4.5.3 (try 2): quota initcall In-Reply-To: <3B058003.81A01B77@mandrakesoft.com> Content-Type: multipart/mixed; boundary="------------CCC3A2DEAFE25A301B9883A1" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------CCC3A2DEAFE25A301B9883A1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Doh! I should really turn on that quota compile options... Much better patch attached. -- 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." --------------CCC3A2DEAFE25A301B9883A1 Content-Type: text/plain; charset=us-ascii; name="quota-initcall-2.4.5.3.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="quota-initcall-2.4.5.3.patch" 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.2 --- 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 13:18:36 2001 @@ -1343,13 +1343,12 @@ } -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)); + return 0; } +__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.2 --- 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 13:18:36 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 @@ -579,9 +576,6 @@ #endif #if defined(CONFIG_SYSVIPC) ipc_init(); -#endif -#if defined(CONFIG_QUOTA) - dquot_init_hash(); #endif check_bugs(); printk("POSIX conformance testing by UNIFIX\n"); --------------CCC3A2DEAFE25A301B9883A1--