Lines Matching full:spaces
76 struct address_space *spaces; in total_swapcache_pages() local
87 spaces = rcu_dereference(swapper_spaces[i]); in total_swapcache_pages()
88 if (!nr || !spaces) in total_swapcache_pages()
91 ret += spaces[j].nrpages; in total_swapcache_pages()
621 struct address_space *spaces, *space; in init_swap_address_space() local
625 spaces = kvcalloc(nr, sizeof(struct address_space), GFP_KERNEL); in init_swap_address_space()
626 if (!spaces) in init_swap_address_space()
629 space = spaces + i; in init_swap_address_space()
637 rcu_assign_pointer(swapper_spaces[type], spaces); in init_swap_address_space()
644 struct address_space *spaces; in exit_swap_address_space() local
646 spaces = swapper_spaces[type]; in exit_swap_address_space()
650 kvfree(spaces); in exit_swap_address_space()