diff options
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -934,7 +934,8 @@ void __init swap_setup(void) | |||
934 | #ifdef CONFIG_SWAP | 934 | #ifdef CONFIG_SWAP |
935 | int i; | 935 | int i; |
936 | 936 | ||
937 | bdi_init(swapper_spaces[0].backing_dev_info); | 937 | if (bdi_init(swapper_spaces[0].backing_dev_info)) |
938 | panic("Failed to init swap bdi"); | ||
938 | for (i = 0; i < MAX_SWAPFILES; i++) { | 939 | for (i = 0; i < MAX_SWAPFILES; i++) { |
939 | spin_lock_init(&swapper_spaces[i].tree_lock); | 940 | spin_lock_init(&swapper_spaces[i].tree_lock); |
940 | INIT_LIST_HEAD(&swapper_spaces[i].i_mmap_nonlinear); | 941 | INIT_LIST_HEAD(&swapper_spaces[i].i_mmap_nonlinear); |