};
struct address_space *swapper_spaces[MAX_SWAPFILES] __read_mostly;
-static unsigned int nr_swapper_spaces[MAX_SWAPFILES] __read_mostly;
static bool enable_vma_readahead __read_mostly = true;
#define SWAP_RA_WIN_SHIFT (PAGE_SHIFT / 2)
/* swap cache doesn't use writeback related tags */
mapping_set_no_writeback_tags(space);
}
- nr_swapper_spaces[type] = nr;
swapper_spaces[type] = spaces;
return 0;
void exit_swap_address_space(unsigned int type)
{
kvfree(swapper_spaces[type]);
- nr_swapper_spaces[type] = 0;
swapper_spaces[type] = NULL;
}