/fs/nfs/ |
D | nfs3acl.c | 157 unsigned int npages = 1 + ((args.len - 1) >> PAGE_SHIFT); in __nfs3_proc_setacls() local 161 args.pages[args.npages] = alloc_page(GFP_KERNEL); in __nfs3_proc_setacls() 162 if (args.pages[args.npages] == NULL) in __nfs3_proc_setacls() 164 args.npages++; in __nfs3_proc_setacls() 165 } while (args.npages < npages); in __nfs3_proc_setacls() 197 while (args.npages != 0) { in __nfs3_proc_setacls() 198 args.npages--; in __nfs3_proc_setacls() 199 __free_page(args.pages[args.npages]); in __nfs3_proc_setacls()
|
D | direct.c | 274 static void nfs_direct_release_pages(struct page **pages, unsigned int npages) in nfs_direct_release_pages() argument 277 for (i = 0; i < npages; i++) in nfs_direct_release_pages() 494 unsigned npages, i; in nfs_direct_read_schedule_iovec() local 503 npages = (result + pgbase + PAGE_SIZE - 1) / PAGE_SIZE; in nfs_direct_read_schedule_iovec() 504 for (i = 0; i < npages; i++) { in nfs_direct_read_schedule_iovec() 527 nfs_direct_release_pages(pagevec, npages); in nfs_direct_read_schedule_iovec() 888 unsigned npages, i; in nfs_direct_write_schedule_iovec() local 897 npages = (result + pgbase + PAGE_SIZE - 1) / PAGE_SIZE; in nfs_direct_write_schedule_iovec() 898 for (i = 0; i < npages; i++) { in nfs_direct_write_schedule_iovec() 930 nfs_direct_release_pages(pagevec, npages); in nfs_direct_write_schedule_iovec()
|
D | fscache.c | 372 unsigned npages = *nr_pages; in __nfs_readpages_from_fscache() local 376 nfs_i_fscache(inode), npages, inode); in __nfs_readpages_from_fscache() 383 if (*nr_pages < npages) in __nfs_readpages_from_fscache() 385 npages); in __nfs_readpages_from_fscache()
|
D | read.c | 384 unsigned long npages; in nfs_readpages() local 422 npages = (pgm->pg_bytes_written + PAGE_CACHE_SIZE - 1) >> in nfs_readpages() 424 nfs_add_stats(inode, NFSIOS_READPAGES, npages); in nfs_readpages()
|
D | dir.c | 601 void nfs_readdir_free_pages(struct page **pages, unsigned int npages) in nfs_readdir_free_pages() argument 604 for (i = 0; i < npages; i++) in nfs_readdir_free_pages() 613 int nfs_readdir_alloc_pages(struct page **pages, unsigned int npages) in nfs_readdir_alloc_pages() argument 617 for (i = 0; i < npages; i++) { in nfs_readdir_alloc_pages()
|
D | pagelist.c | 34 p->npages = pagecount; in nfs_pgarray_set() 40 p->npages = 0; in nfs_pgarray_set()
|
/fs/ramfs/ |
D | file-nommu.c | 68 unsigned long npages, xpages, loop; in ramfs_nommu_expand_for_mapping() local 94 npages = (newsize + PAGE_SIZE - 1) >> PAGE_SHIFT; in ramfs_nommu_expand_for_mapping() 99 for (loop = npages; loop < xpages; loop++) in ramfs_nommu_expand_for_mapping() 103 newsize = PAGE_SIZE * npages; in ramfs_nommu_expand_for_mapping() 108 for (loop = 0; loop < npages; loop++) { in ramfs_nommu_expand_for_mapping() 127 while (loop < npages) in ramfs_nommu_expand_for_mapping()
|
/fs/sysv/ |
D | dir.c | 68 unsigned long npages = dir_pages(inode); in sysv_readdir() local 79 for ( ; n < npages; n++, offset = 0) { in sysv_readdir() 132 unsigned long npages = dir_pages(dir); in sysv_find_entry() local 139 if (start >= npages) in sysv_find_entry() 160 if (++n >= npages) in sysv_find_entry() 179 unsigned long npages = dir_pages(dir); in sysv_add_link() local 186 for (n = 0; n <= npages; n++) { in sysv_add_link() 287 unsigned long i, npages = dir_pages(inode); in sysv_empty_dir() local 289 for (i = 0; i < npages; i++) { in sysv_empty_dir()
|
/fs/freevxfs/ |
D | vxfs_lookup.c | 109 u_long npages, page, nblocks, pblocks, block; in vxfs_find_entry() local 114 npages = dir_pages(ip); in vxfs_find_entry() 118 for (page = 0; page < npages; page++) { in vxfs_find_entry() 236 u_long page, npages, block, pblocks, nblocks, offset; in vxfs_readdir() local 254 npages = dir_pages(ip); in vxfs_readdir() 262 for (; page < npages; page++, block = 0) { in vxfs_readdir()
|
/fs/qnx6/ |
D | dir.c | 117 unsigned long npages = dir_pages(inode); in qnx6_readdir() local 126 for ( ; !done && n < npages; n++, start = 0) { in qnx6_readdir() 219 unsigned long npages = dir_pages(dir); in qnx6_find_entry() local 226 if (npages == 0) in qnx6_find_entry() 229 if (start >= npages) in qnx6_find_entry() 261 if (++n >= npages) in qnx6_find_entry()
|
/fs/nilfs2/ |
D | dir.c | 261 unsigned long npages = dir_pages(inode); in nilfs_readdir() local 267 for ( ; n < npages; n++, offset = 0) { in nilfs_readdir() 326 unsigned long npages = dir_pages(dir); in nilfs_find_entry() local 331 if (npages == 0) in nilfs_find_entry() 338 if (start >= npages) in nilfs_find_entry() 361 if (++n >= npages) in nilfs_find_entry() 441 unsigned long npages = dir_pages(dir); in nilfs_add_link() local 452 for (n = 0; n <= npages; n++) { in nilfs_add_link() 616 unsigned long i, npages = dir_pages(inode); in nilfs_empty_dir() local 618 for (i = 0; i < npages; i++) { in nilfs_empty_dir()
|
/fs/minix/ |
D | dir.c | 86 unsigned long npages = dir_pages(inode); in minix_readdir() local 98 for ( ; n < npages; n++, offset = 0) { in minix_readdir() 158 unsigned long npages = dir_pages(dir); in minix_find_entry() local 166 for (n = 0; n < npages; n++) { in minix_find_entry() 207 unsigned long npages = dir_pages(dir); in minix_add_link() local 222 for (n = 0; n <= npages; n++) { in minix_add_link() 363 unsigned long i, npages = dir_pages(inode); in minix_empty_dir() local 368 for (i = 0; i < npages; i++) { in minix_empty_dir()
|
/fs/ufs/ |
D | dir.c | 256 unsigned long npages = dir_pages(dir); in ufs_find_entry() local 263 if (npages == 0 || namelen > UFS_MAXNAMLEN) in ufs_find_entry() 271 if (start >= npages) in ufs_find_entry() 294 if (++n >= npages) in ufs_find_entry() 320 unsigned long npages = dir_pages(dir); in ufs_add_link() local 333 for (n = 0; n <= npages; n++) { in ufs_add_link() 437 unsigned long npages = dir_pages(inode); in ufs_readdir() local 447 for ( ; n < npages; n++, offset = 0) { in ufs_readdir() 608 unsigned long i, npages = dir_pages(inode); in ufs_empty_dir() local 610 for (i = 0; i < npages; i++) { in ufs_empty_dir()
|
/fs/ext2/ |
D | dir.c | 292 unsigned long npages = dir_pages(inode); in ext2_readdir() local 303 for ( ; n < npages; n++, offset = 0) { in ext2_readdir() 368 unsigned long npages = dir_pages(dir); in ext2_find_entry() local 374 if (npages == 0) in ext2_find_entry() 381 if (start >= npages) in ext2_find_entry() 406 if (++n >= npages) in ext2_find_entry() 492 unsigned long npages = dir_pages(dir); in ext2_add_link() local 503 for (n = 0; n <= npages; n++) { in ext2_add_link() 668 unsigned long i, npages = dir_pages(inode); in ext2_empty_dir() local 671 for (i = 0; i < npages; i++) { in ext2_empty_dir()
|
/fs/exofs/ |
D | dir.c | 242 unsigned long npages = dir_pages(inode); in exofs_readdir() local 249 for ( ; n < npages; n++, offset = 0) { in exofs_readdir() 310 unsigned long npages = dir_pages(dir); in exofs_find_entry() local 315 if (npages == 0) in exofs_find_entry() 321 if (start >= npages) in exofs_find_entry() 345 if (++n >= npages) in exofs_find_entry() 435 unsigned long npages = dir_pages(dir); in exofs_add_link() local 441 for (n = 0; n <= npages; n++) { in exofs_add_link() 612 unsigned long i, npages = dir_pages(inode); in exofs_empty_dir() local 614 for (i = 0; i < npages; i++) { in exofs_empty_dir()
|
/fs/fuse/ |
D | dev.c | 41 unsigned npages) in fuse_request_init() argument 44 memset(pages, 0, sizeof(*pages) * npages); in fuse_request_init() 45 memset(page_descs, 0, sizeof(*page_descs) * npages); in fuse_request_init() 52 req->max_pages = npages; in fuse_request_init() 56 static struct fuse_req *__fuse_request_alloc(unsigned npages, gfp_t flags) in __fuse_request_alloc() argument 63 if (npages <= FUSE_REQ_INLINE_PAGES) { in __fuse_request_alloc() 67 pages = kmalloc(sizeof(struct page *) * npages, flags); in __fuse_request_alloc() 69 npages, flags); in __fuse_request_alloc() 79 fuse_request_init(req, pages, page_descs, npages); in __fuse_request_alloc() 84 struct fuse_req *fuse_request_alloc(unsigned npages) in fuse_request_alloc() argument [all …]
|
D | fuse_i.h | 795 struct fuse_req *fuse_request_alloc(unsigned npages); 797 struct fuse_req *fuse_request_alloc_nofs(unsigned npages); 808 struct fuse_req *fuse_get_req(struct fuse_conn *fc, unsigned npages); 810 unsigned npages);
|
/fs/f2fs/ |
D | dir.c | 206 unsigned long npages = dir_blocks(dir); in __f2fs_find_entry() local 217 if (npages == 0) { in __f2fs_find_entry() 854 unsigned long npages = dir_blocks(inode); in f2fs_readdir() local 879 for (; n < npages; n++, ctx->pos = n * NR_DENTRY_IN_BLOCK) { in f2fs_readdir() 889 if (npages - n > 1 && !ra_has_index(ra, n)) in f2fs_readdir() 891 min(npages - n, (pgoff_t)MAX_DIR_RA_PAGES)); in f2fs_readdir()
|
D | debug.c | 169 unsigned npages; in update_mem_info() local 252 npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info() 253 si->page_mem += (unsigned long long)npages << PAGE_SHIFT; in update_mem_info() 254 npages = META_MAPPING(sbi)->nrpages; in update_mem_info() 255 si->page_mem += (unsigned long long)npages << PAGE_SHIFT; in update_mem_info()
|
/fs/ceph/ |
D | file.c | 72 int ret = 0, idx, npages; in dio_get_pages_alloc() local 76 npages = calc_pages_for(align, nbytes); in dio_get_pages_alloc() 77 pages = kmalloc(sizeof(*pages) * npages, GFP_KERNEL); in dio_get_pages_alloc() 79 pages = vmalloc(sizeof(*pages) * npages); in dio_get_pages_alloc() 84 for (idx = 0; idx < npages; ) { in dio_get_pages_alloc() 87 npages - idx, &start); in dio_get_pages_alloc() 97 *num_pages = npages; in dio_get_pages_alloc() 99 dout("dio_get_pages_alloc: got %d pages align %zu\n", npages, align); in dio_get_pages_alloc()
|
/fs/jfs/ |
D | jfs_dmap.c | 4048 #define BMAPPGTOLEV(npages) \ argument 4049 (((npages) <= 3 + MAXL0PAGES) ? 0 : \ 4050 ((npages) <= 2 + MAXL1PAGES) ? 1 : 2) 4056 s64 npages, ndmaps; in dbMapFileSizeToMapSize() local 4061 npages = nblocks >> JFS_SBI(sb)->l2nbperpage; in dbMapFileSizeToMapSize() 4062 level = BMAPPGTOLEV(npages); in dbMapFileSizeToMapSize() 4069 npages--; /* skip the first global control page */ in dbMapFileSizeToMapSize() 4071 npages -= (2 - level); in dbMapFileSizeToMapSize() 4072 npages--; /* skip top level's control page */ in dbMapFileSizeToMapSize() 4076 complete = (u32) npages / factor; in dbMapFileSizeToMapSize() [all …]
|
D | jfs_logmgr.c | 2387 int npages = 0; in lmLogFormat() local 2398 npages = logSize >> sbi->l2nbperpage; in lmLogFormat() 2418 logsuper->size = cpu_to_le32(npages); in lmLogFormat() 2456 lp->h.page = lp->t.page = cpu_to_le32(npages - 3); in lmLogFormat() 2475 for (lspn = 0; lspn < npages - 3; lspn++) { in lmLogFormat()
|
/fs/nfs/blocklayout/ |
D | blocklayout.c | 240 header->page_array.npages, f_offset, in bl_read_pagelist() 252 for (i = pg_index; i < header->page_array.npages; i++) { in bl_read_pagelist() 285 header->page_array.npages - i, in bl_read_pagelist() 398 for (i = pg_index; i < header->page_array.npages; i++) { in bl_write_pagelist() 412 bio = do_add_page_to_bio(bio, header->page_array.npages - i, in bl_write_pagelist()
|
/fs/ |
D | splice.c | 1455 unsigned long off, npages; in get_iovec_page_array() local 1492 npages = (off + len + PAGE_SIZE - 1) >> PAGE_SHIFT; in get_iovec_page_array() 1493 if (npages > pipe_buffers - buffers) in get_iovec_page_array() 1494 npages = pipe_buffers - buffers; in get_iovec_page_array() 1496 error = get_user_pages_fast((unsigned long)base, npages, in get_iovec_page_array() 1529 if (error < npages || buffers == pipe_buffers) in get_iovec_page_array()
|
/fs/afs/ |
D | dir.c | 93 __be16 npages; member 143 if (page->index == 0 && qty != ntohs(dbuf->blocks[0].pagehdr.npages)) { in afs_dir_check_page() 146 ntohs(dbuf->blocks[0].pagehdr.npages)); in afs_dir_check_page()
|