From: Pekka Enberg <penberg@cs.helsinki.fi>
To: mingo@elte.hu
Cc: cl@linux-foundation.com, torvals@linux-foundation.org,
mpm@selenic.com, npiggin@suse.de, yinghai@kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] init: call vfs_caches_init_early() later in the boot sequence
Date: Thu, 28 May 2009 16:29:25 +0300 [thread overview]
Message-ID: <1243517365.11533.65.camel@penberg-laptop> (raw)
From: Pekka Enberg <penberg@cs.helsinki.fi>
There's no need to call vfs_caches_init_early() before kmem_cache_init(). All
we have to do is make sure we don't attempt to use the bootmem allocator after
we've called mem_init().
Cc: Christoph Lameter <cl@linux-foundation.com>
Cc: Linus Torvalds <torvals@linux-foundation.org>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
---
fs/dcache.c | 2 +-
fs/inode.c | 2 +-
init/main.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/dcache.c b/fs/dcache.c
index ee60ce4..6c48ba1 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -2255,7 +2255,7 @@ static void __init dcache_init_early(void)
sizeof(struct hlist_head),
dhash_entries,
13,
- HASH_EARLY,
+ 0,
&d_hash_shift,
&d_hash_mask,
0);
diff --git a/fs/inode.c b/fs/inode.c
index 0571983..92379c8 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -1487,7 +1487,7 @@ void __init inode_init_early(void)
sizeof(struct hlist_head),
ihash_entries,
14,
- HASH_EARLY,
+ 0,
&i_hash_shift,
&i_hash_mask,
0);
diff --git a/init/main.c b/init/main.c
index 5a19578..f6bd51f 100644
--- a/init/main.c
+++ b/init/main.c
@@ -588,7 +588,6 @@ asmlinkage void __init start_kernel(void)
* kmem_cache_init()
*/
pidhash_init();
- vfs_caches_init_early();
/*
* Set up kernel memory allocators
*/
@@ -658,6 +657,7 @@ asmlinkage void __init start_kernel(void)
initrd_start = 0;
}
#endif
+ vfs_caches_init_early();
cpuset_init_early();
page_cgroup_init();
enable_debug_pagealloc();
--
1.6.0.4
next reply other threads:[~2009-05-28 13:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-28 13:29 Pekka Enberg [this message]
2009-05-29 1:10 ` Subject: [PATCH] slab: remove bootmem calling Yinghai Lu
2009-06-01 13:10 ` Nick Piggin
2009-05-29 1:12 ` Yinghai Lu
2009-05-29 1:15 ` Yinghai Lu
2009-05-29 1:18 ` Yinghai Lu
2009-05-29 9:07 ` Pekka Enberg
2009-05-29 14:03 ` Christoph Lameter
2009-05-29 8:52 ` Pekka Enberg
2009-06-01 13:08 ` [PATCH] init: call vfs_caches_init_early() later in the boot sequence Nick Piggin
2009-06-02 6:48 ` Pekka Enberg
2009-06-02 6:55 ` Nick Piggin
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=1243517365.11533.65.camel@penberg-laptop \
--to=penberg@cs.helsinki.fi \
--cc=cl@linux-foundation.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mpm@selenic.com \
--cc=npiggin@suse.de \
--cc=torvals@linux-foundation.org \
--cc=yinghai@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®