Home
last modified time | relevance | path

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

12

/linux-6.6.21/fs/nilfs2/
Dbtnode.c198 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_prepare_change_key()
199 err = __xa_insert(&btnc->i_pages, newkey, opage, GFP_NOFS); in nilfs_btnode_prepare_change_key()
200 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_prepare_change_key()
255 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_commit_change_key()
256 __xa_erase(&btnc->i_pages, oldkey); in nilfs_btnode_commit_change_key()
257 __xa_set_mark(&btnc->i_pages, newkey, PAGECACHE_TAG_DIRTY); in nilfs_btnode_commit_change_key()
258 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_commit_change_key()
286 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 f = __xa_erase(&smap->i_pages, index); 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 f = __xa_store(&dmap->i_pages, index, folio, GFP_NOFS); in nilfs_copy_back_pages()
341 __xa_set_mark(&dmap->i_pages, index, in nilfs_copy_back_pages()
344 xa_unlock_irq(&dmap->i_pages); in nilfs_copy_back_pages()
463 xa_lock_irq(&mapping->i_pages); in __nilfs_clear_page_dirty()
465 __xa_clear_mark(&mapping->i_pages, page_index(page), in __nilfs_clear_page_dirty()
467 xa_unlock_irq(&mapping->i_pages); in __nilfs_clear_page_dirty()
[all …]
/linux-6.6.21/arch/nios2/include/asm/
Dcacheflush.h54 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&mapping->i_pages)
55 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&mapping->i_pages)
57 xa_lock_irqsave(&mapping->i_pages, flags)
59 xa_unlock_irqrestore(&mapping->i_pages, flags)
/linux-6.6.21/arch/parisc/include/asm/
Dcacheflush.h55 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&mapping->i_pages)
56 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&mapping->i_pages)
58 xa_lock_irqsave(&mapping->i_pages, flags)
60 xa_unlock_irqrestore(&mapping->i_pages, flags)
/linux-6.6.21/mm/
Dtruncate.c34 XA_STATE(xas, &mapping->i_pages, index); in __clear_shadow_entry()
46 xa_lock_irq(&mapping->i_pages); in clear_shadow_entry()
48 xa_unlock_irq(&mapping->i_pages); in clear_shadow_entry()
79 xa_lock_irq(&mapping->i_pages); in truncate_folio_batch_exceptionals()
100 xa_unlock_irq(&mapping->i_pages); in truncate_folio_batch_exceptionals()
479 xa_lock_irq(&mapping->i_pages); in truncate_inode_pages_final()
480 xa_unlock_irq(&mapping->i_pages); in truncate_inode_pages_final()
579 xa_lock_irq(&mapping->i_pages); in invalidate_complete_folio2()
585 xa_unlock_irq(&mapping->i_pages); in invalidate_complete_folio2()
593 xa_unlock_irq(&mapping->i_pages); in invalidate_complete_folio2()
Dswap_state.c76 page = xa_load(&address_space->i_pages, idx); in get_shadow_from_swap_cache()
91 XA_STATE_ORDER(xas, &address_space->i_pages, idx, folio_order(folio)); in add_to_swap_cache()
146 XA_STATE(xas, &address_space->i_pages, idx); in __delete_from_swap_cache()
238 xa_lock_irq(&address_space->i_pages); in delete_from_swap_cache()
240 xa_unlock_irq(&address_space->i_pages); in delete_from_swap_cache()
255 XA_STATE(xas, &address_space->i_pages, curr); in clear_shadow_from_swap_cache()
259 xa_lock_irq(&address_space->i_pages); in clear_shadow_from_swap_cache()
265 xa_unlock_irq(&address_space->i_pages); in clear_shadow_from_swap_cache()
684 xa_init_flags(&space->i_pages, XA_FLAGS_LOCK_IRQ); in init_swap_address_space()
Dworkingset.c613 mapping = container_of(node->array, struct address_space, i_pages); in workingset_update_node()
614 lockdep_assert_held(&mapping->i_pages.xa_lock); in workingset_update_node()
708 mapping = container_of(node->array, struct address_space, i_pages); in shadow_lru_isolate()
711 if (!xa_trylock(&mapping->i_pages)) { in shadow_lru_isolate()
720 xa_unlock(&mapping->i_pages); in shadow_lru_isolate()
745 xa_unlock_irq(&mapping->i_pages); in shadow_lru_isolate()
Dfilemap.c129 XA_STATE(xas, &mapping->i_pages, folio->index); in page_cache_delete()
256 xa_lock_irq(&mapping->i_pages); in filemap_remove_folio()
258 xa_unlock_irq(&mapping->i_pages); in filemap_remove_folio()
282 XA_STATE(xas, &mapping->i_pages, fbatch->folios[0]->index); in page_cache_delete_batch()
329 xa_lock_irq(&mapping->i_pages); in delete_from_page_cache_batch()
337 xa_unlock_irq(&mapping->i_pages); in delete_from_page_cache_batch()
476 XA_STATE(xas, &mapping->i_pages, start_byte >> PAGE_SHIFT); in filemap_range_has_page()
634 XA_STATE(xas, &mapping->i_pages, start_byte >> PAGE_SHIFT); in filemap_range_has_writeback()
812 XA_STATE(xas, &mapping->i_pages, offset); in replace_page_cache_folio()
847 XA_STATE(xas, &mapping->i_pages, index); in __filemap_add_folio()
[all …]
Dreadahead.c230 struct folio *folio = xa_load(&mapping->i_pages, index + i); in page_cache_ra_unbounded()
791 struct folio *folio = xa_load(&mapping->i_pages, index); in readahead_expand()
818 struct folio *folio = xa_load(&mapping->i_pages, index); in readahead_expand()
Dpage-writeback.c2344 XA_STATE(xas, &mapping->i_pages, start); in tag_pages_for_writeback()
2666 xa_lock_irqsave(&mapping->i_pages, flags); in __folio_mark_dirty()
2670 __xa_set_mark(&mapping->i_pages, folio_index(folio), in __folio_mark_dirty()
2673 xa_unlock_irqrestore(&mapping->i_pages, flags); in __folio_mark_dirty()
2955 xa_lock_irqsave(&mapping->i_pages, flags); in __folio_end_writeback()
2958 __xa_clear_mark(&mapping->i_pages, folio_index(folio), in __folio_end_writeback()
2975 xa_unlock_irqrestore(&mapping->i_pages, flags); in __folio_end_writeback()
2997 XA_STATE(xas, &mapping->i_pages, folio_index(folio)); in __folio_start_writeback()
Dshmem.c454 xa_lock_irq(&mapping->i_pages); in shmem_charge()
456 xa_unlock_irq(&mapping->i_pages); in shmem_charge()
476 XA_STATE(xas, &mapping->i_pages, index); in shmem_replace_entry()
498 return xa_load(&mapping->i_pages, index) == swp_to_radix_entry(swap); in shmem_confirm_swap()
766 XA_STATE_ORDER(xas, &mapping->i_pages, index, folio_order(folio)); in shmem_add_to_page_cache()
836 xa_lock_irq(&mapping->i_pages); in shmem_delete_from_page_cache()
842 xa_unlock_irq(&mapping->i_pages); in shmem_delete_from_page_cache()
855 old = xa_cmpxchg_irq(&mapping->i_pages, index, radswap, NULL, 0); in shmem_free_swap()
872 XA_STATE(xas, &mapping->i_pages, start); in shmem_partial_swap_usage()
1295 XA_STATE(xas, &mapping->i_pages, start); in shmem_find_swap_entries()
[all …]
/linux-6.6.21/arch/csky/abiv1/inc/abi/
Dcacheflush.h19 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&mapping->i_pages)
20 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&mapping->i_pages)
/linux-6.6.21/include/linux/
Dbacking-dev.h254 !lockdep_is_held(&inode->i_mapping->i_pages.xa_lock) && in inode_to_wb()
298 xa_lock_irqsave(&inode->i_mapping->i_pages, cookie->flags); in unlocked_inode_to_wb_begin()
316 xa_unlock_irqrestore(&inode->i_mapping->i_pages, cookie->flags); in unlocked_inode_to_wb_end()
Dpagemap.h141 return xa_empty(&mapping->i_pages); in mapping_empty()
178 head = rcu_access_pointer(mapping->i_pages.xa_head); in mapping_shrinkable()
1349 folio = xa_load(&ractl->mapping->i_pages, ractl->_index); in __readahead_folio()
1393 XA_STATE(xas, &rac->mapping->i_pages, 0); in __readahead_batch()
/linux-6.6.21/Documentation/translations/zh_CN/mm/
Dpage_migration.rst84 5. i_pages的锁被持有。这将导致所有试图通过映射访问该页的进程在自旋锁上阻塞。
99 11. i_pages锁被放弃。这样一来,在映射中的查找又变得可能了。进程将从在锁上自旋到在
/linux-6.6.21/fs/
Ddax.c448 xas.xa = &mapping->i_pages; in dax_lock_folio()
473 XA_STATE(xas, &mapping->i_pages, folio->index); in dax_unlock_folio()
502 xas.xa = &mapping->i_pages; in dax_lock_mapping_entry()
536 XA_STATE(xas, &mapping->i_pages, index); in dax_unlock_mapping_entry()
685 XA_STATE(xas, &mapping->i_pages, start_idx); in dax_layout_busy_page_range()
748 XA_STATE(xas, &mapping->i_pages, index); in __dax_invalidate_entry()
773 XA_STATE(xas, &mapping->i_pages, start); in __dax_clear_dirty_range()
1028 XA_STATE(xas, &mapping->i_pages, wbc->range_start >> PAGE_SHIFT); in dax_writeback_mapping_range()
1701 XA_STATE(xas, &mapping->i_pages, vmf->pgoff); in dax_iomap_pte_fault()
1811 XA_STATE_ORDER(xas, &mapping->i_pages, vmf->pgoff, PMD_ORDER); in dax_iomap_pmd_fault()
[all …]
/linux-6.6.21/arch/arm/include/asm/
Dcacheflush.h321 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&mapping->i_pages)
322 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&mapping->i_pages)
/linux-6.6.21/fs/netfs/
Dio.c26 iov_iter_xarray(&iter, ITER_DEST, &subreq->rreq->mapping->i_pages, in netfs_clear_unread()
52 iov_iter_xarray(&iter, ITER_DEST, &rreq->mapping->i_pages, in netfs_read_from_cache()
121 XA_STATE(xas, &rreq->mapping->i_pages, subreq->start / PAGE_SIZE); in netfs_rreq_unmark_after_write()
211 iov_iter_xarray(&iter, ITER_SOURCE, &rreq->mapping->i_pages, in netfs_rreq_do_write_to_cache()
/linux-6.6.21/fs/erofs/
Dfscache.c70 XA_STATE(xas, &req->mapping->i_pages, start_page); in erofs_fscache_req_complete()
147 iov_iter_xarray(&iter, ITER_DEST, &req->mapping->i_pages, in erofs_fscache_read_folios_async()
220 iov_iter_xarray(&iter, ITER_DEST, &mapping->i_pages, pos, PAGE_SIZE); in erofs_fscache_data_read_slice()
233 iov_iter_xarray(&iter, ITER_DEST, &mapping->i_pages, pos, count); in erofs_fscache_data_read_slice()
/linux-6.6.21/fs/fscache/
Dio.c219 XA_STATE(xas, &mapping->i_pages, first); in __fscache_clear_page_bits()
289 iov_iter_xarray(&iter, ITER_SOURCE, &mapping->i_pages, start, len); in __fscache_write_to_cache()
/linux-6.6.21/fs/9p/
Dvfs_addr.c41 iov_iter_xarray(&to, ITER_DEST, &rreq->mapping->i_pages, pos, len); in v9fs_issue_read()
169 iov_iter_xarray(&from, ITER_SOURCE, &folio_mapping(folio)->i_pages, start, len); in v9fs_vfs_write_folio_locked()
/linux-6.6.21/fs/orangefs/
Dinode.c246 struct xarray *i_pages; in orangefs_readahead() local
264 i_pages = &rac->mapping->i_pages; in orangefs_readahead()
266 iov_iter_xarray(&iter, ITER_DEST, i_pages, offset, readahead_length(rac)); in orangefs_readahead()
/linux-6.6.21/fs/smb/client/
Dfscache.c177 iov_iter_xarray(&iter, ITER_SOURCE, &inode->i_mapping->i_pages, start, len); in fscache_fallback_write_pages()
/linux-6.6.21/fs/afs/
Dfile.c332 &fsreq->vnode->netfs.inode.i_mapping->i_pages, in afs_issue_read()
353 iov_iter_xarray(&fsreq->def_iter, ITER_DEST, &folio->mapping->i_pages, in afs_symlink_read_folio()
Dwrite.c296 XA_STATE(xas, &mapping->i_pages, start / PAGE_SIZE); in afs_pages_written_back()
480 XA_STATE(xas, &mapping->i_pages, index); in afs_extend_writeback()
646 iov_iter_xarray(&iter, ITER_SOURCE, &mapping->i_pages, start, len); in afs_write_back_from_locked_folio()

12