Home
last modified time | relevance | path

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

12

/fs/erofs/
Dzutil.c12 unsigned int nrpages; member
44 if (requiredpages > gbuf->nrpages) { in z_erofs_get_gbuf()
64 int z_erofs_gbuf_growsize(unsigned int nrpages) in z_erofs_gbuf_growsize() argument
74 if (nrpages <= z_erofs_gbuf_nrpages) { in z_erofs_gbuf_growsize()
81 tmp_pages = kcalloc(nrpages, sizeof(*tmp_pages), GFP_KERNEL); in z_erofs_gbuf_growsize()
85 for (j = 0; j < gbuf->nrpages; ++j) in z_erofs_gbuf_growsize()
89 j = alloc_pages_bulk_array(GFP_KERNEL, nrpages, in z_erofs_gbuf_growsize()
93 } while (j != nrpages); in z_erofs_gbuf_growsize()
95 ptr = vmap(tmp_pages, nrpages, VM_MAP, PAGE_KERNEL); in z_erofs_gbuf_growsize()
104 gbuf->nrpages = nrpages; in z_erofs_gbuf_growsize()
[all …]
Dinternal.h472 int z_erofs_gbuf_growsize(unsigned int nrpages);
Dzdata.c299 unsigned int nrpages = PAGE_ALIGN(size) >> PAGE_SHIFT; in z_erofs_alloc_pcluster() local
305 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster()
/fs/f2fs/
Ddebug.c161 si->node_pages = NODE_MAPPING(sbi)->nrpages; in update_general_status()
163 si->meta_pages = META_MAPPING(sbi)->nrpages; in update_general_status()
166 si->compress_pages = COMPRESS_MAPPING(sbi)->nrpages; in update_general_status()
323 unsigned long npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info()
328 unsigned long npages = META_MAPPING(sbi)->nrpages; in update_mem_info()
334 unsigned long npages = COMPRESS_MAPPING(sbi)->nrpages; in update_mem_info()
Dnode.c111 (COMPRESS_MAPPING(sbi)->nrpages < in f2fs_available_free_memory()
2859 int i, idx, last_offset, nrpages; in f2fs_restore_node_summary() local
2866 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in f2fs_restore_node_summary()
2867 nrpages = bio_max_segs(last_offset - i); in f2fs_restore_node_summary()
2870 f2fs_ra_meta_pages(sbi, addr, nrpages, META_POR, true); in f2fs_restore_node_summary()
2872 for (idx = addr; idx < addr + nrpages; idx++) { in f2fs_restore_node_summary()
2887 addr + nrpages); in f2fs_restore_node_summary()
Dcheckpoint.c252 int f2fs_ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, in f2fs_ra_meta_pages() argument
273 for (; nrpages-- > 0; blkno++) { in f2fs_ra_meta_pages()
/fs/nilfs2/
Dpage.c328 smap->nrpages--; in nilfs_copy_back_pages()
339 dmap->nrpages++; in nilfs_copy_back_pages()
498 if (inode->i_mapping->nrpages == 0) in nilfs_find_uncommitted_extent()
/fs/nfs/
Dinode.c148 if (mapping->nrpages != 0) { in nfs_sync_mapping()
211 if (inode->i_mapping->nrpages == 0) { in nfs_set_cache_invalid()
257 if (mapping->nrpages != 0) { in nfs_zap_mapping()
1018 if (inode->i_mapping->nrpages == 0) in nfs_close_context()
1294 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
Ddirect.c1012 if (mapping->nrpages) { in nfs_file_direct_write()
/fs/jffs2/
Ddir.c191 inode->i_mapping->nrpages = 0; in jffs2_create()
214 f->inocache->pino_nlink, inode->i_mapping->nrpages); in jffs2_create()
Dfs.c321 inode->i_mapping->nrpages = 0; in jffs2_iget()
/fs/orangefs/
Dfile.c420 #define mapping_nrpages(idata) ((idata)->nrpages)
/fs/
Ddax.c626 mapping->nrpages -= PG_PMD_NR; in grab_mapping_entry()
642 mapping->nrpages += 1UL << order; in grab_mapping_entry()
762 mapping->nrpages -= 1UL << dax_entry_order(entry); in __dax_invalidate_entry()
Dbuffer.c3153 unsigned long nrpages; in buffer_init() local
3165 nrpages = (nr_free_buffer_pages() * 10) / 100; in buffer_init()
3166 max_buffer_heads = nrpages * (PAGE_SIZE / sizeof(struct buffer_head)); in buffer_init()
Ddirect-io.c363 dio->inode->i_mapping->nrpages); in dio_bio_end_aio()
/fs/gfs2/
Dglock.c2389 unsigned long nrpages = 0; in gfs2_dump_glock() local
2394 nrpages = mapping->nrpages; in gfs2_dump_glock()
2413 (int)gl->gl_lockref.count, gl->gl_hold_time, nrpages); in gfs2_dump_glock()
Dlog.c734 if (ip->i_inode.i_mapping->nrpages == 0) { in gfs2_ordered_write()
755 if (ip->i_inode.i_mapping->nrpages == 0) in gfs2_ordered_wait()
Dfile.c749 if (mapping->nrpages) { in gfs2_fsync()
771 if (mapping->nrpages) in gfs2_fsync()
Dglops.c558 inode->i_data.nrpages); in inode_go_dump()
/fs/9p/
Dvfs_file.c434 if (inode->i_mapping && inode->i_mapping->nrpages) in v9fs_file_write_iter()
/fs/exfat/
Dinode.c562 inode->i_mapping->nrpages = 0; in exfat_fill_inode()
/fs/xfs/
Dxfs_bmap_util.c670 VFS_I(ip)->i_mapping->nrpages == 0 && in xfs_can_free_eofblocks()
1359 if (VFS_I(ip)->i_mapping->nrpages) in xfs_swap_extent_flush()
/fs/smb/client/
Dinode.c2455 if (inode->i_mapping && inode->i_mapping->nrpages != 0) {
2633 inode->i_mapping && inode->i_mapping->nrpages != 0) {
2707 inode->i_mapping->nrpages != 0) {
/fs/nfs/blocklayout/
Dblocklayout.c875 if (end != inode->i_mapping->nrpages) { in pnfs_num_cont_bytes()
/fs/ceph/
Dcaps.c976 ci->netfs.inode.i_data.nrpages)) in __ceph_caps_used()
1936 if (inode->i_data.nrpages == 0 && in try_nonblocking_invalidate()
2069 inode->i_data.nrpages && /* have cached pages */ in ceph_check_caps()
4877 if (inode->i_data.nrpages > 0) in ceph_purge_inode_cap()

12