Lines Matching refs:address_space
39 struct address_space *swapper_spaces[MAX_SWAPFILES] __read_mostly;
75 struct address_space *spaces; in total_swapcache_pages()
113 struct address_space *address_space = swap_address_space(entry); in get_shadow_from_swap_cache() local
117 page = find_get_entry(address_space, idx); in get_shadow_from_swap_cache()
132 struct address_space *address_space = swap_address_space(entry); in add_to_swap_cache() local
134 XA_STATE_ORDER(xas, &address_space->i_pages, idx, compound_order(page)); in add_to_swap_cache()
164 address_space->nrexceptional -= nr_shadows; in add_to_swap_cache()
165 address_space->nrpages += nr; in add_to_swap_cache()
187 struct address_space *address_space = swap_address_space(entry); in __delete_from_swap_cache() local
190 XA_STATE(xas, &address_space->i_pages, idx); in __delete_from_swap_cache()
204 address_space->nrexceptional += nr; in __delete_from_swap_cache()
205 address_space->nrpages -= nr; in __delete_from_swap_cache()
276 struct address_space *address_space = swap_address_space(entry); in delete_from_swap_cache() local
278 xa_lock_irq(&address_space->i_pages); in delete_from_swap_cache()
280 xa_unlock_irq(&address_space->i_pages); in delete_from_swap_cache()
295 struct address_space *address_space = swap_address_space(entry); in clear_shadow_from_swap_cache() local
296 XA_STATE(xas, &address_space->i_pages, curr); in clear_shadow_from_swap_cache()
298 xa_lock_irq(&address_space->i_pages); in clear_shadow_from_swap_cache()
305 address_space->nrexceptional -= nr_shadows; in clear_shadow_from_swap_cache()
306 xa_unlock_irq(&address_space->i_pages); in clear_shadow_from_swap_cache()
429 struct page *find_get_incore_page(struct address_space *mapping, pgoff_t index) in find_get_incore_page()
714 struct address_space *spaces, *space; in init_swap_address_space()
718 spaces = kvcalloc(nr, sizeof(struct address_space), GFP_KERNEL); in init_swap_address_space()