Lines Matching refs:address_space
39 struct address_space *swapper_spaces[MAX_SWAPFILES] __read_mostly;
75 struct address_space *spaces; in total_swapcache_pages()
112 struct address_space *address_space = swap_address_space(entry); in get_shadow_from_swap_cache() local
116 page = find_get_entry(address_space, idx); in get_shadow_from_swap_cache()
131 struct address_space *address_space = swap_address_space(entry); in add_to_swap_cache() local
133 XA_STATE_ORDER(xas, &address_space->i_pages, idx, compound_order(page)); in add_to_swap_cache()
163 address_space->nrexceptional -= nr_shadows; in add_to_swap_cache()
164 address_space->nrpages += nr; in add_to_swap_cache()
186 struct address_space *address_space = swap_address_space(entry); in __delete_from_swap_cache() local
189 XA_STATE(xas, &address_space->i_pages, idx); in __delete_from_swap_cache()
203 address_space->nrexceptional += nr; in __delete_from_swap_cache()
204 address_space->nrpages -= nr; in __delete_from_swap_cache()
275 struct address_space *address_space = swap_address_space(entry); in delete_from_swap_cache() local
277 xa_lock_irq(&address_space->i_pages); in delete_from_swap_cache()
279 xa_unlock_irq(&address_space->i_pages); in delete_from_swap_cache()
294 struct address_space *address_space = swap_address_space(entry); in clear_shadow_from_swap_cache() local
295 XA_STATE(xas, &address_space->i_pages, curr); in clear_shadow_from_swap_cache()
297 xa_lock_irq(&address_space->i_pages); in clear_shadow_from_swap_cache()
304 address_space->nrexceptional -= nr_shadows; in clear_shadow_from_swap_cache()
305 xa_unlock_irq(&address_space->i_pages); in clear_shadow_from_swap_cache()
428 struct page *find_get_incore_page(struct address_space *mapping, pgoff_t index) in find_get_incore_page()
709 struct address_space *spaces, *space; in init_swap_address_space()
713 spaces = kvcalloc(nr, sizeof(struct address_space), GFP_KERNEL); in init_swap_address_space()