Lines Matching refs:address_space

39 struct address_space *swapper_spaces[MAX_SWAPFILES] __read_mostly;
86 struct address_space *address_space = swap_address_space(entry); in get_shadow_from_swap_cache() local
90 page = xa_load(&address_space->i_pages, idx); in get_shadow_from_swap_cache()
103 struct address_space *address_space = swap_address_space(entry); in add_to_swap_cache() local
105 XA_STATE_ORDER(xas, &address_space->i_pages, idx, compound_order(page)); in add_to_swap_cache()
132 address_space->nrpages += nr; in add_to_swap_cache()
155 struct address_space *address_space = swap_address_space(entry); in __delete_from_swap_cache() local
158 XA_STATE(xas, &address_space->i_pages, idx); in __delete_from_swap_cache()
171 address_space->nrpages -= nr; in __delete_from_swap_cache()
243 struct address_space *address_space = swap_address_space(entry); in delete_from_swap_cache() local
245 xa_lock_irq(&address_space->i_pages); in delete_from_swap_cache()
247 xa_unlock_irq(&address_space->i_pages); in delete_from_swap_cache()
261 struct address_space *address_space = swap_address_space(entry); in clear_shadow_from_swap_cache() local
262 XA_STATE(xas, &address_space->i_pages, curr); in clear_shadow_from_swap_cache()
264 xa_lock_irq(&address_space->i_pages); in clear_shadow_from_swap_cache()
270 xa_unlock_irq(&address_space->i_pages); in clear_shadow_from_swap_cache()
393 struct page *find_get_incore_page(struct address_space *mapping, pgoff_t index) in find_get_incore_page()
666 struct address_space *spaces, *space; in init_swap_address_space()
670 spaces = kvcalloc(nr, sizeof(struct address_space), GFP_KERNEL); in init_swap_address_space()
690 struct address_space *spaces = swapper_spaces[type]; in exit_swap_address_space()