aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorHeiko Carstens <[email protected]>2008-05-23 13:04:52 -0700
committerLinus Torvalds <[email protected]>2008-05-24 09:56:12 -0700
commitcd94b9dbfa300fc42e45f230010623fc08d59563 (patch)
treead9581e94a635032d74d3905975ebd4c39bed5f2 /fs/jbd2/commit.c
parent7eb54824b76793dd86afb54f182ef9aa64b3a45a (diff)
memory hotplug: fix early allocation handling
Trying to add memory via add_memory() from within an initcall function results in bootmem alloc of 163840 bytes failed! Kernel panic - not syncing: Out of memory This is caused by zone_wait_table_init() which uses system_state to decide if it should use the bootmem allocator or not. When initcalls are handled the system_state is still SYSTEM_BOOTING but the bootmem allocator doesn't work anymore. So the allocation will fail. To fix this use slab_is_available() instead as indicator like we do it everywhere else. [[email protected]: coding-style fix] Reviewed-by: Andy Whitcroft <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Gerald Schaefer <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Acked-by: Yasunori Goto <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions