Searched refs:nrpages (Results 1 - 25 of 56) sorted by relevance

123

/linux-master/fs/erofs/
H A Dpcpubuf.c16 unsigned int nrpages; member in struct:erofs_pcpubuf
28 if (requiredpages > pcb->nrpages) {
48 int erofs_pcpubuf_growsize(unsigned int nrpages) argument
56 delta = nrpages - pcb_nrpages;
67 pages = kmalloc_array(nrpages, sizeof(*pages), GFP_KERNEL);
73 for (i = 0; i < nrpages; ++i) {
81 ptr = vmap(pages, nrpages, VM_MAP, PAGE_KERNEL);
92 i = pcb->nrpages;
93 pcb->nrpages = nrpages;
[all...]
H A Dinternal.h475 int erofs_pcpubuf_growsize(unsigned int nrpages);
/linux-master/arch/sh/mm/
H A Dioremap_fixed.c52 unsigned int nrpages; local
79 nrpages = size >> PAGE_SHIFT;
80 if (nrpages > FIX_N_IOREMAPS)
88 while (nrpages > 0) {
93 --nrpages;
104 unsigned int nrpages; local
122 nrpages = map->size >> PAGE_SHIFT;
124 idx = FIX_IOREMAP_BEGIN + slot + nrpages - 1;
125 while (nrpages > 0) {
128 --nrpages;
[all...]
/linux-master/mm/
H A Dearly_ioremap.c104 unsigned int nrpages; local
138 nrpages = size >> PAGE_SHIFT;
139 if (WARN_ON(nrpages > NR_FIX_BTMAPS))
146 while (nrpages > 0) {
153 --nrpages;
166 unsigned int nrpages; local
195 nrpages = PAGE_ALIGN(offset + size) >> PAGE_SHIFT;
198 while (nrpages > 0) {
204 --nrpages;
H A Dfadvise.c39 unsigned long nrpages; local
102 nrpages = end_index - start_index + 1;
103 if (!nrpages)
104 nrpages = ~0UL;
106 force_page_cache_readahead(mapping, file, start_index, nrpages);
H A Dmprotect.c583 long nrpages = (end - start) >> PAGE_SHIFT; local
620 if (!may_expand_vm(mm, newflags, nrpages) &&
621 may_expand_vm(mm, oldflags, nrpages))
625 charged = nrpages;
656 vm_unacct_memory(nrpages);
667 vm_stat_account(mm, oldflags, -nrpages);
668 vm_stat_account(mm, newflags, nrpages);
H A Dswap_state.c122 address_space->nrpages += nr;
163 address_space->nrpages -= nr;
/linux-master/fs/netfs/
H A Dlocking.c150 if (inode->i_mapping->nrpages != 0) {
H A Doutput.c124 wreq->mapping->nrpages) {
/linux-master/arch/x86/mm/
H A Dioremap.c47 unsigned long nrpages = size >> PAGE_SHIFT; local
53 err = _set_memory_uc(vaddr, nrpages);
56 err = _set_memory_wc(vaddr, nrpages);
59 err = _set_memory_wt(vaddr, nrpages);
62 err = _set_memory_wb(vaddr, nrpages);
/linux-master/fs/nilfs2/
H A Dpage.c331 smap->nrpages--;
342 dmap->nrpages++;
503 if (inode->i_mapping->nrpages == 0)
/linux-master/lib/
H A Dtest_xarray.c738 unsigned int nrpages = 1UL << order; local
741 XA_BUG_ON(xa, index & (nrpages - 1));
816 unsigned int nrpages = 1UL << order; local
821 base = round_down(index, nrpages);
822 next_index = round_down(base + nrpages, nrpages);
823 next_next_index = round_down(next_index + nrpages, nrpages);
827 for (i = 0; i < nrpages; i++)
842 for (i = 0; i < nrpages;
[all...]
/linux-master/fs/f2fs/
H A Ddebug.c161 si->node_pages = NODE_MAPPING(sbi)->nrpages;
163 si->meta_pages = META_MAPPING(sbi)->nrpages;
166 si->compress_pages = COMPRESS_MAPPING(sbi)->nrpages;
323 unsigned long npages = NODE_MAPPING(sbi)->nrpages;
328 unsigned long npages = META_MAPPING(sbi)->nrpages;
334 unsigned long npages = COMPRESS_MAPPING(sbi)->nrpages;
H A Dnode.c111 (COMPRESS_MAPPING(sbi)->nrpages <
2849 int i, idx, last_offset, nrpages; local
2856 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) {
2857 nrpages = bio_max_segs(last_offset - i);
2860 f2fs_ra_meta_pages(sbi, addr, nrpages, META_POR, true);
2862 for (idx = addr; idx < addr + nrpages; idx++) {
2877 addr + nrpages); local
/linux-master/block/
H A Dbdev.c93 if (mapping->nrpages) {
455 ret += inode->i_mapping->nrpages;
1200 mapping->nrpages == 0) {
/linux-master/fs/orangefs/
H A Dfile.c420 #define mapping_nrpages(idata) ((idata)->nrpages)
/linux-master/fs/jffs2/
H A Ddir.c191 inode->i_mapping->nrpages = 0;
212 jffs2_dbg(1, "%s(): Created ino #%lu with mode %o, nlink %d(%d). nrpages %ld\n",
214 f->inocache->pino_nlink, inode->i_mapping->nrpages);
/linux-master/fs/bcachefs/
H A Dfs-io-pagecache.c58 if (!mapping->nrpages)
65 if (!mapping->nrpages)
H A Dfs-io-direct.c190 if (unlikely(mapping->nrpages)) {
644 if (unlikely(mapping->nrpages)) {
/linux-master/fs/nfs/
H A Dinode.c148 if (mapping->nrpages != 0) {
211 if (inode->i_mapping->nrpages == 0) {
257 if (mapping->nrpages != 0) {
1018 if (inode->i_mapping->nrpages == 0)
1294 if (mapping->nrpages != 0) {
/linux-master/fs/
H A Ddax.c626 mapping->nrpages -= PG_PMD_NR;
642 mapping->nrpages += 1UL << order;
762 mapping->nrpages -= 1UL << dax_entry_order(entry);
/linux-master/ipc/
H A Dshm.c943 *rss_add += pages_per_huge_page(h) * mapping->nrpages;
949 *rss_add += inode->i_mapping->nrpages;
953 *rss_add += inode->i_mapping->nrpages;
/linux-master/fs/gfs2/
H A Dglock.c2380 unsigned long nrpages = 0; local
2385 nrpages = mapping->nrpages;
2404 (int)gl->gl_lockref.count, gl->gl_hold_time, nrpages);
H A Dglops.c556 inode->i_data.nrpages);
H A Dlog.c730 if (ip->i_inode.i_mapping->nrpages == 0) {
751 if (ip->i_inode.i_mapping->nrpages == 0)

Completed in 285 milliseconds

123