Home
last modified time | relevance | path

Searched refs:nrpages (Results 1 – 19 of 19) sorted by relevance

/linux/arch/sh/mm/
H A Dioremap_fixed.c52 unsigned int nrpages; in ioremap_fixed() local
79 nrpages = size >> PAGE_SHIFT; in ioremap_fixed()
80 if (nrpages > FIX_N_IOREMAPS) in ioremap_fixed()
88 while (nrpages > 0) { in ioremap_fixed()
93 --nrpages; in ioremap_fixed()
104 unsigned int nrpages; in iounmap_fixed() local
122 nrpages = map->size >> PAGE_SHIFT; in iounmap_fixed()
124 idx = FIX_IOREMAP_BEGIN + slot + nrpages - 1; in iounmap_fixed()
125 while (nrpages > 0) { in iounmap_fixed()
128 --nrpages; in iounmap_fixed()
/linux/arch/x86/mm/
H A Dioremap.c48 unsigned long nrpages = size >> PAGE_SHIFT; in ioremap_change_attr() local
54 err = _set_memory_uc(vaddr, nrpages); in ioremap_change_attr()
57 err = _set_memory_wc(vaddr, nrpages); in ioremap_change_attr()
60 err = _set_memory_wt(vaddr, nrpages); in ioremap_change_attr()
63 err = _set_memory_wb(vaddr, nrpages); in ioremap_change_attr()
/linux/lib/
H A Dtest_xarray.c738 unsigned int nrpages = 1UL << order; in check_xa_multi_store_adv_add() local
741 XA_BUG_ON(xa, index & (nrpages - 1)); in check_xa_multi_store_adv_add()
821 unsigned int nrpages = 1UL << order; in check_xa_multi_store_adv() local
826 base = round_down(index, nrpages); in check_xa_multi_store_adv()
827 next_index = round_down(base + nrpages, nrpages); in check_xa_multi_store_adv()
828 next_next_index = round_down(next_index + nrpages, nrpages); in check_xa_multi_store_adv()
832 for (i = 0; i < nrpages; i++) in check_xa_multi_store_adv()
847 for (i = 0; i < nrpages; i++) in check_xa_multi_store_adv()
861 for (i = 0; i < nrpages; i++) in check_xa_multi_store_adv()
864 for (i = 0; i < nrpages; i++) in check_xa_multi_store_adv()
[all …]
/linux/fs/netfs/
H A Dlocking.c144 if (inode->i_mapping->nrpages != 0) { in netfs_block_buffered()
H A Ddirect_write.c28 wreq->mapping->nrpages) { in netfs_unbuffered_write_done()
/linux/fs/erofs/
H A Dzdata.c264 unsigned int nrpages = PAGE_ALIGN(size) >> PAGE_SHIFT; in z_erofs_alloc_pcluster() local
270 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster()
1900 unsigned int nrpages = readahead_count(rac); in z_erofs_readahead() local
1904 trace_erofs_readahead(realinode, readahead_index(rac), nrpages, false); in z_erofs_readahead()
1924 (void)z_erofs_runqueue(&f, nrpages << PAGE_SHIFT); in z_erofs_readahead()
/linux/block/
H A Dbdev.c98 if (mapping->nrpages) { in invalidate_bdev()
568 ret += inode->i_mapping->nrpages; in nr_blockdev_pages()
1350 mapping->nrpages == 0) { in sync_bdevs()
/linux/fs/nfs/
H A Dinode.c130 if (mapping->nrpages != 0) { in nfs_sync_mapping()
192 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid()
198 if (inode->i_mapping->nrpages == 0 || in nfs_set_cache_invalid()
242 if (mapping->nrpages != 0) { in nfs_zap_mapping()
1182 if (inode->i_mapping->nrpages == 0) in nfs_close_context()
1465 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
H A Dpnfs.c2445 (i_size_read(ino) == 0 || ino->i_mapping->nrpages != 0)) in _lgopen_prepare_attached()
/linux/fs/orangefs/
H A Dfile.c422 #define mapping_nrpages(idata) ((idata)->nrpages)
/linux/fs/gfs2/
H A Dfile.c751 if (mapping->nrpages) { in gfs2_fsync()
773 if (mapping->nrpages) in gfs2_fsync()
H A Dsuper.c1343 bool need_trans = gfs2_is_jdata(ip) && mapping->nrpages; in gfs2_truncate_inode_pages()
1375 bool need_lock = gfs2_is_jdata(ip) && mapping->nrpages; in gfs2_truncate_inode_pages_final()
/linux/fs/xfs/
H A Dxfs_bmap_util.c529 VFS_I(ip)->i_mapping->nrpages == 0 && in xfs_can_free_eofblocks()
1266 if (VFS_I(ip)->i_mapping->nrpages) in xfs_swap_extent_flush()
/linux/fs/
H A Dbuffer.c2992 unsigned long nrpages; in buffer_init() local
3000 nrpages = (nr_free_buffer_pages() * 10) / 100; in buffer_init()
3001 max_buffer_heads = nrpages * (PAGE_SIZE / sizeof(struct buffer_head)); in buffer_init()
/linux/fs/iomap/
H A Ddirect-io.c217 if (dio->iocb->ki_filp->f_mapping->nrpages) in iomap_dio_done()
/linux/fs/fuse/
H A Dfile.c701 if (io->write && res > 0 && mapping->nrpages) { in fuse_aio_complete()
1814 if (res > 0 && mapping->nrpages) { in fuse_direct_write_iter()
/linux/fs/ext4/
H A Dinode.c2786 if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)) in ext4_do_writepages()
/linux/fs/btrfs/
H A Dsend.c5668 sctx->clean_page_cache = (sctx->cur_inode->i_mapping->nrpages == 0); in send_extent_data()
H A Dinode.c8134 WARN_ON(vfs_inode->i_data.nrpages); in btrfs_destroy_inode()