Lines Matching refs:spaces
75 struct address_space *spaces; in total_swapcache_pages() local
86 spaces = rcu_dereference(swapper_spaces[i]); in total_swapcache_pages()
87 if (!nr || !spaces) in total_swapcache_pages()
90 ret += spaces[j].nrpages; in total_swapcache_pages()
619 struct address_space *spaces, *space; in init_swap_address_space() local
623 spaces = kvcalloc(nr, sizeof(struct address_space), GFP_KERNEL); in init_swap_address_space()
624 if (!spaces) in init_swap_address_space()
627 space = spaces + i; in init_swap_address_space()
635 rcu_assign_pointer(swapper_spaces[type], spaces); in init_swap_address_space()
642 struct address_space *spaces; in exit_swap_address_space() local
644 spaces = swapper_spaces[type]; in exit_swap_address_space()
648 kvfree(spaces); in exit_swap_address_space()