Home
last modified time | relevance | path

Searched refs:i_pages (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v5.4/fs/nilfs2/
Dbtnode.c181 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_prepare_change_key()
182 err = __xa_insert(&btnc->i_pages, newkey, opage, GFP_NOFS); in nilfs_btnode_prepare_change_key()
183 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_prepare_change_key()
238 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_commit_change_key()
239 __xa_erase(&btnc->i_pages, oldkey); in nilfs_btnode_commit_change_key()
240 __xa_set_mark(&btnc->i_pages, newkey, PAGECACHE_TAG_DIRTY); in nilfs_btnode_commit_change_key()
241 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_commit_change_key()
269 xa_erase_irq(&btnc->i_pages, newkey); in nilfs_btnode_abort_change_key()
Dpage.c325 xa_lock_irq(&smap->i_pages); in nilfs_copy_back_pages()
326 p = __xa_erase(&smap->i_pages, offset); in nilfs_copy_back_pages()
329 xa_unlock_irq(&smap->i_pages); in nilfs_copy_back_pages()
331 xa_lock_irq(&dmap->i_pages); in nilfs_copy_back_pages()
332 p = __xa_store(&dmap->i_pages, offset, page, GFP_NOFS); in nilfs_copy_back_pages()
341 __xa_set_mark(&dmap->i_pages, offset, in nilfs_copy_back_pages()
344 xa_unlock_irq(&dmap->i_pages); in nilfs_copy_back_pages()
466 xa_lock_irq(&mapping->i_pages); in __nilfs_clear_page_dirty()
468 __xa_clear_mark(&mapping->i_pages, page_index(page), in __nilfs_clear_page_dirty()
470 xa_unlock_irq(&mapping->i_pages); in __nilfs_clear_page_dirty()
[all …]
/Linux-v5.4/mm/
Dtruncate.c37 XA_STATE(xas, &mapping->i_pages, index); in __clear_shadow_entry()
49 xa_lock_irq(&mapping->i_pages); in clear_shadow_entry()
51 xa_unlock_irq(&mapping->i_pages); in clear_shadow_entry()
80 xa_lock_irq(&mapping->i_pages); in truncate_exceptional_pvec_entries()
103 xa_unlock_irq(&mapping->i_pages); in truncate_exceptional_pvec_entries()
519 xa_lock_irq(&mapping->i_pages); in truncate_inode_pages_final()
520 xa_unlock_irq(&mapping->i_pages); in truncate_inode_pages_final()
646 xa_lock_irqsave(&mapping->i_pages, flags); in invalidate_complete_page2()
652 xa_unlock_irqrestore(&mapping->i_pages, flags); in invalidate_complete_page2()
660 xa_unlock_irqrestore(&mapping->i_pages, flags); in invalidate_complete_page2()
Dworkingset.c471 mapping = container_of(node->array, struct address_space, i_pages); in shadow_lru_isolate()
474 if (!xa_trylock(&mapping->i_pages)) { in shadow_lru_isolate()
495 xas.xa_node = xa_parent_locked(&mapping->i_pages, node); in shadow_lru_isolate()
507 xa_unlock_irq(&mapping->i_pages); in shadow_lru_isolate()
Dfilemap.c122 XA_STATE(xas, &mapping->i_pages, page->index); in page_cache_delete()
272 xa_lock_irqsave(&mapping->i_pages, flags); in delete_from_page_cache()
274 xa_unlock_irqrestore(&mapping->i_pages, flags); in delete_from_page_cache()
297 XA_STATE(xas, &mapping->i_pages, pvec->pages[0]->index); in page_cache_delete_batch()
351 xa_lock_irqsave(&mapping->i_pages, flags); in delete_from_page_cache_batch()
358 xa_unlock_irqrestore(&mapping->i_pages, flags); in delete_from_page_cache_batch()
476 XA_STATE(xas, &mapping->i_pages, start_byte >> PAGE_SHIFT); in filemap_range_has_page()
816 XA_STATE(xas, &mapping->i_pages, offset); in replace_page_cache_page()
855 XA_STATE(xas, &mapping->i_pages, offset); in __add_to_page_cache_locked()
1462 XA_STATE(xas, &mapping->i_pages, index); in page_cache_next_miss()
[all …]
Dswap_state.c118 XA_STATE_ORDER(xas, &address_space->i_pages, idx, compound_order(page)); in add_to_swap_cache()
163 XA_STATE(xas, &address_space->i_pages, idx); in __delete_from_swap_cache()
249 xa_lock_irq(&address_space->i_pages); in delete_from_swap_cache()
251 xa_unlock_irq(&address_space->i_pages); in delete_from_swap_cache()
608 xa_init_flags(&space->i_pages, XA_FLAGS_LOCK_IRQ); in init_swap_address_space()
Dpage-writeback.c2108 XA_STATE(xas, &mapping->i_pages, start); in tag_pages_for_writeback()
2477 xa_lock_irqsave(&mapping->i_pages, flags); in __set_page_dirty_nobuffers()
2481 __xa_set_mark(&mapping->i_pages, page_index(page), in __set_page_dirty_nobuffers()
2483 xa_unlock_irqrestore(&mapping->i_pages, flags); in __set_page_dirty_nobuffers()
2728 xa_lock_irqsave(&mapping->i_pages, flags); in test_clear_page_writeback()
2731 __xa_clear_mark(&mapping->i_pages, page_index(page), in test_clear_page_writeback()
2745 xa_unlock_irqrestore(&mapping->i_pages, flags); in test_clear_page_writeback()
2771 XA_STATE(xas, &mapping->i_pages, page_index(page)); in __test_set_page_writeback()
Dmemfd.c68 XA_STATE(xas, &mapping->i_pages, 0); in memfd_wait_for_pins()
Dshmem.c356 XA_STATE(xas, &mapping->i_pages, index); in shmem_replace_entry()
378 return xa_load(&mapping->i_pages, index) == swp_to_radix_entry(swap); in shmem_confirm_swap()
610 XA_STATE_ORDER(xas, &mapping->i_pages, index, compound_order(page)); in shmem_add_to_page_cache()
669 xa_lock_irq(&mapping->i_pages); in shmem_delete_from_page_cache()
675 xa_unlock_irq(&mapping->i_pages); in shmem_delete_from_page_cache()
688 old = xa_cmpxchg_irq(&mapping->i_pages, index, radswap, NULL, 0); in shmem_free_swap()
705 XA_STATE(xas, &mapping->i_pages, start); in shmem_partial_swap_usage()
1126 XA_STATE(xas, &mapping->i_pages, start); in shmem_find_swap_entries()
1478 if (xa_find(&mapping->i_pages, &hindex, hindex + HPAGE_PMD_NR - 1, in shmem_alloc_hugepage()
1590 xa_lock_irq(&swap_mapping->i_pages); in shmem_replace_page()
[all …]
Dhuge_memory.c2517 xa_lock(&swap_cache->i_pages); in __split_huge_page()
2530 __xa_store(&head->mapping->i_pages, head[i].index, in __split_huge_page()
2533 __xa_store(&swap_cache->i_pages, offset + i, in __split_huge_page()
2547 xa_unlock(&swap_cache->i_pages); in __split_huge_page()
2554 xa_unlock(&head->mapping->i_pages); in __split_huge_page()
2772 XA_STATE(xas, &mapping->i_pages, page_index(head)); in split_huge_page_to_list()
2778 xa_lock(&mapping->i_pages); in split_huge_page_to_list()
2818 xa_unlock(&mapping->i_pages); in split_huge_page_to_list()
Dreadahead.c182 page = xa_load(&mapping->i_pages, page_offset); in __do_page_cache_readahead()
Dvmscan.c910 xa_lock_irqsave(&mapping->i_pages, flags); in __remove_mapping()
949 xa_unlock_irqrestore(&mapping->i_pages, flags); in __remove_mapping()
976 xa_unlock_irqrestore(&mapping->i_pages, flags); in __remove_mapping()
985 xa_unlock_irqrestore(&mapping->i_pages, flags); in __remove_mapping()
Dkhugepaged.c1502 XA_STATE_ORDER(xas, &mapping->i_pages, start, HPAGE_PMD_ORDER); in collapse_file()
1819 XA_STATE(xas, &mapping->i_pages, start); in khugepaged_scan_file()
/Linux-v5.4/arch/nios2/include/asm/
Dcacheflush.h49 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&mapping->i_pages)
50 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&mapping->i_pages)
/Linux-v5.4/arch/csky/abiv1/inc/abi/
Dcacheflush.h21 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&mapping->i_pages)
22 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&mapping->i_pages)
/Linux-v5.4/arch/nds32/include/asm/
Dcacheflush.h39 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&(mapping)->i_pages)
40 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&(mapping)->i_pages)
/Linux-v5.4/arch/parisc/include/asm/
Dcacheflush.h58 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&mapping->i_pages)
59 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&mapping->i_pages)
/Linux-v5.4/include/linux/
Dbacking-dev.h347 !lockdep_is_held(&inode->i_mapping->i_pages.xa_lock) && in inode_to_wb()
380 xa_lock_irqsave(&inode->i_mapping->i_pages, cookie->flags); in unlocked_inode_to_wb_begin()
398 xa_unlock_irqrestore(&inode->i_mapping->i_pages, cookie->flags); in unlocked_inode_to_wb_end()
/Linux-v5.4/arch/arm/include/asm/
Dcacheflush.h318 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&mapping->i_pages)
319 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&mapping->i_pages)
/Linux-v5.4/fs/
Ddax.c414 xas.xa = &mapping->i_pages; in dax_lock_page()
439 XA_STATE(xas, &mapping->i_pages, page->index); in dax_unlock_page()
578 XA_STATE(xas, &mapping->i_pages, 0); in dax_layout_busy_page()
633 XA_STATE(xas, &mapping->i_pages, index); in __dax_invalidate_entry()
942 XA_STATE(xas, &mapping->i_pages, wbc->range_start >> PAGE_SHIFT); in dax_writeback_mapping_range()
1247 XA_STATE(xas, &mapping->i_pages, vmf->pgoff); in dax_iomap_pte_fault()
1468 XA_STATE_ORDER(xas, &mapping->i_pages, vmf->pgoff, PMD_ORDER); in dax_iomap_pmd_fault()
1670 XA_STATE_ORDER(xas, &mapping->i_pages, vmf->pgoff, order); in dax_insert_pfn_mkwrite()
Dinode.c368 xa_init_flags(&mapping->i_pages, XA_FLAGS_LOCK_IRQ | XA_FLAGS_ACCOUNT); in __address_space_init_once()
527 xa_lock_irq(&inode->i_data.i_pages); in clear_inode()
530 xa_unlock_irq(&inode->i_data.i_pages); in clear_inode()
Dfs-writeback.c360 XA_STATE(xas, &mapping->i_pages, 0); in inode_switch_wbs_work_fn()
388 xa_lock_irq(&mapping->i_pages); in inode_switch_wbs_work_fn()
452 xa_unlock_irq(&mapping->i_pages); in inode_switch_wbs_work_fn()
Dbuffer.c580 xa_lock_irqsave(&mapping->i_pages, flags); in __set_page_dirty()
584 __xa_set_mark(&mapping->i_pages, page_index(page), in __set_page_dirty()
587 xa_unlock_irqrestore(&mapping->i_pages, flags); in __set_page_dirty()
/Linux-v5.4/fs/gfs2/
Dglops.c478 xa_lock_irq(&inode->i_data.i_pages); in inode_go_dump()
480 xa_unlock_irq(&inode->i_data.i_pages); in inode_go_dump()
/Linux-v5.4/Documentation/vm/
Dpage_migration.rst106 5. The i_pages lock is taken. This will cause all processes trying
124 11. The i_pages lock is dropped. With that lookups in the mapping

12