/fs/fuse/ |
D | file.c | 355 if (idx_from < curr_index + req->num_pages && in fuse_range_is_writeback() 540 for (i = 0; i < req->num_pages; i++) { in fuse_release_user_pages() 705 for (i = start_idx; i < req->num_pages; i++) { in fuse_short_read() 743 req->num_pages = 1; in fuse_do_readpage() 789 for (i = 0; mapping == NULL && i < req->num_pages; i++) in fuse_readpages_end() 804 for (i = 0; i < req->num_pages; i++) { in fuse_readpages_end() 822 size_t count = req->num_pages << PAGE_SHIFT; in fuse_send_readpages() 856 if (req->num_pages && in fuse_readpages_fill() 857 (req->num_pages == FUSE_MAX_PAGES_PER_REQ || in fuse_readpages_fill() 858 (req->num_pages + 1) * PAGE_SIZE > fc->max_read || in fuse_readpages_fill() [all …]
|
D | dev.c | 1018 for (i = 0; i < req->num_pages && (nbytes || zeroing); i++) { in fuse_copy_pages() 1666 release_pages(req->pages, req->num_pages, false); in fuse_retrieve_end() 1680 int num_pages; in fuse_retrieve() local 1691 num_pages = (num + offset + PAGE_SIZE - 1) >> PAGE_SHIFT; in fuse_retrieve() 1692 num_pages = min(num_pages, FUSE_MAX_PAGES_PER_REQ); in fuse_retrieve() 1694 req = fuse_get_req(fc, num_pages); in fuse_retrieve() 1706 while (num && req->num_pages < num_pages) { in fuse_retrieve() 1715 req->pages[req->num_pages] = page; in fuse_retrieve() 1716 req->page_descs[req->num_pages].offset = offset; in fuse_retrieve() 1717 req->page_descs[req->num_pages].length = this_num; in fuse_retrieve() [all …]
|
D | fuse_i.h | 365 unsigned num_pages; member
|
D | cuse.c | 455 req->num_pages = 1; in cuse_send_init()
|
D | dir.c | 1409 req->num_pages = 1; in fuse_readdir()
|
/fs/btrfs/ |
D | check-integrity.c | 336 char **datav, unsigned int num_pages); 339 unsigned int num_pages, 1574 unsigned int num_pages; in btrfsic_release_block_ctx() local 1578 num_pages = (block_ctx->len + (u64)PAGE_SIZE - 1) >> in btrfsic_release_block_ctx() 1580 while (num_pages > 0) { in btrfsic_release_block_ctx() 1581 num_pages--; in btrfsic_release_block_ctx() 1582 if (block_ctx->datav[num_pages]) { in btrfsic_release_block_ctx() 1583 kunmap(block_ctx->pagev[num_pages]); in btrfsic_release_block_ctx() 1584 block_ctx->datav[num_pages] = NULL; in btrfsic_release_block_ctx() 1586 if (block_ctx->pagev[num_pages]) { in btrfsic_release_block_ctx() [all …]
|
D | extent_io.c | 2061 unsigned long i, num_pages = num_extent_pages(eb->start, eb->len); in repair_eb_io_failure() local 2067 for (i = 0; i < num_pages; i++) { in repair_eb_io_failure() 3544 unsigned long i, num_pages; in lock_extent_buffer_for_io() local 3594 num_pages = num_extent_pages(eb->start, eb->len); in lock_extent_buffer_for_io() 3595 for (i = 0; i < num_pages; i++) { in lock_extent_buffer_for_io() 3718 unsigned long i, num_pages; in write_one_eb() local 3725 num_pages = num_extent_pages(eb->start, eb->len); in write_one_eb() 3726 atomic_set(&eb->io_pages, num_pages); in write_one_eb() 3746 for (i = 0; i < num_pages; i++) { in write_one_eb() 3761 if (atomic_sub_and_test(num_pages - i, &eb->io_pages)) in write_one_eb() [all …]
|
D | free-space-cache.c | 317 int num_pages; in io_ctl_init() local 320 num_pages = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in io_ctl_init() 327 (num_pages * sizeof(u32)) >= PAGE_SIZE) in io_ctl_init() 332 io_ctl->pages = kcalloc(num_pages, sizeof(struct page *), GFP_NOFS); in io_ctl_init() 336 io_ctl->num_pages = num_pages; in io_ctl_init() 360 ASSERT(io_ctl->index < io_ctl->num_pages); in io_ctl_map_page() 375 for (i = 0; i < io_ctl->num_pages; i++) { in io_ctl_drop_pages() 391 for (i = 0; i < io_ctl->num_pages; i++) { in io_ctl_prepare_pages() 416 for (i = 0; i < io_ctl->num_pages; i++) { in io_ctl_prepare_pages() 435 io_ctl->cur += (sizeof(u32) * io_ctl->num_pages); in io_ctl_set_generation() [all …]
|
D | file.c | 464 static void btrfs_drop_pages(struct page **pages, size_t num_pages) in btrfs_drop_pages() argument 467 for (i = 0; i < num_pages; i++) { in btrfs_drop_pages() 489 size_t num_pages, loff_t pos, size_t write_bytes, in btrfs_dirty_pages() argument 511 for (i = 0; i < num_pages; i++) { in btrfs_dirty_pages() 1358 size_t num_pages, loff_t pos, in prepare_pages() argument 1367 for (i = 0; i < num_pages; i++) { in prepare_pages() 1380 if (!err && i == num_pages - 1) in prepare_pages() 1459 size_t num_pages, loff_t pos, in lock_and_cleanup_extent_if_need() argument 1489 for (i = 0; i < num_pages; i++) { in lock_and_cleanup_extent_if_need() 1518 for (i = 0; i < num_pages; i++) { in lock_and_cleanup_extent_if_need() [all …]
|
D | ioctl.c | 1107 unsigned long num_pages) in cluster_pages_for_defrag() argument 1127 page_cnt = min_t(u64, (u64)num_pages, (u64)file_end - start_index + 1); in cluster_pages_for_defrag() 2893 int num_pages, u64 off) in gather_extent_pages() argument 2898 for (i = 0; i < num_pages; i++) { in gather_extent_pages() 2991 int num_pages; member 3001 for (i = 0; i < cmp->num_pages; i++) { in btrfs_cmp_data_free() 3022 int num_pages = PAGE_ALIGN(len) >> PAGE_SHIFT; in btrfs_cmp_data_prepare() local 3031 src_pgarr = kcalloc(num_pages, sizeof(struct page *), GFP_KERNEL); in btrfs_cmp_data_prepare() 3032 dst_pgarr = kcalloc(num_pages, sizeof(struct page *), GFP_KERNEL); in btrfs_cmp_data_prepare() 3038 cmp->num_pages = num_pages; in btrfs_cmp_data_prepare() [all …]
|
D | raid56.c | 986 int num_pages = rbio_nr_pages(stripe_len, real_stripes); in alloc_rbio() local 990 rbio = kzalloc(sizeof(*rbio) + num_pages * sizeof(struct page *) * 2 + in alloc_rbio() 1004 rbio->nr_pages = num_pages; in alloc_rbio() 1019 rbio->bio_pages = p + sizeof(struct page *) * num_pages; in alloc_rbio() 1020 rbio->dbitmap = p + sizeof(struct page *) * num_pages * 2; in alloc_rbio()
|
D | extent-tree.c | 3497 u64 num_pages = 0; in cache_save_setup() local 3607 num_pages = div_u64(block_group->key.offset, SZ_256M); in cache_save_setup() 3608 if (!num_pages) in cache_save_setup() 3609 num_pages = 1; in cache_save_setup() 3611 num_pages *= 16; in cache_save_setup() 3612 num_pages *= PAGE_SIZE; in cache_save_setup() 3614 ret = btrfs_check_data_free_space(inode, &data_reserved, 0, num_pages); in cache_save_setup() 3618 ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, num_pages, in cache_save_setup() 3619 num_pages, num_pages, in cache_save_setup()
|
D | ctree.h | 536 int num_pages; member 3242 size_t num_pages, loff_t pos, size_t write_bytes,
|
/fs/ceph/ |
D | file.c | 100 size_t *page_align, int *num_pages) in dio_get_pages_alloc() argument 127 *num_pages = npages; in dio_get_pages_alloc() 489 struct page **pages, int num_pages, in striped_read() argument 509 pages + page_idx, num_pages - page_idx, in striped_read() 562 int num_pages; in ceph_sync_read() local 588 num_pages = DIV_ROUND_UP(ret + page_off, PAGE_SIZE); in ceph_sync_read() 590 ret = striped_read(inode, off, ret, pages, num_pages, in ceph_sync_read() 598 ceph_put_page_vector(pages, num_pages, false); in ceph_sync_read() 600 num_pages = calc_pages_for(off, len); in ceph_sync_read() 601 pages = ceph_alloc_page_vector(num_pages, GFP_KERNEL); in ceph_sync_read() [all …]
|
D | addr.c | 263 int num_pages; in finish_read() local 271 num_pages = calc_pages_for((u64)osd_data->alignment, in finish_read() 273 for (i = 0; i < num_pages; i++) { in finish_read() 703 int num_pages, total_pages = 0; in writepages_finish() local 735 num_pages = calc_pages_for((u64)osd_data->alignment, in writepages_finish() 737 total_pages += num_pages; in writepages_finish() 738 for (j = 0; j < num_pages; j++) { in writepages_finish() 762 inode, osd_data->length, rc >= 0 ? num_pages : 0); in writepages_finish() 764 ceph_release_pages(osd_data->pages, num_pages); in writepages_finish()
|
/fs/exofs/ |
D | ore_raid.c | 639 unsigned num_pages; in _ore_add_parity_unit() local 645 num_pages = _sp2d_max_pg(sp2d) + 1 - si->cur_pg; in _ore_add_parity_unit() 660 for (i = 0; i < num_pages; i++) { in _ore_add_parity_unit() 669 BUG_ON(si->cur_pg + num_pages > sp2d->pages_in_unit); in _ore_add_parity_unit() 672 per_dev, num_pages * PAGE_SIZE); in _ore_add_parity_unit()
|
/fs/cifs/ |
D | file.c | 2487 cifs_write_allocate_pages(struct page **pages, unsigned long num_pages) in cifs_write_allocate_pages() argument 2492 for (i = 0; i < num_pages; i++) { in cifs_write_allocate_pages() 2499 num_pages = i; in cifs_write_allocate_pages() 2506 for (i = 0; i < num_pages; i++) in cifs_write_allocate_pages() 2515 size_t num_pages; in get_numpages() local 2519 num_pages = DIV_ROUND_UP(clen, PAGE_SIZE); in get_numpages() 2524 return num_pages; in get_numpages() 2564 size_t *len, unsigned long *num_pages) in wdata_fill_from_iovec() argument 2567 unsigned long i, nr_pages = *num_pages; in wdata_fill_from_iovec() 2600 *num_pages = i + 1; in wdata_fill_from_iovec() [all …]
|
/fs/ocfs2/ |
D | aops.h | 36 void ocfs2_unlock_and_free_pages(struct page **pages, int num_pages);
|
D | aops.c | 802 void ocfs2_unlock_and_free_pages(struct page **pages, int num_pages) in ocfs2_unlock_and_free_pages() argument 806 for(i = 0; i < num_pages; i++) { in ocfs2_unlock_and_free_pages()
|
D | alloc.c | 6888 int ret, i, has_data, num_pages = 0; in ocfs2_convert_inline_data_to_extents() local 6968 ret = ocfs2_grab_eof_pages(inode, 0, end, pages, &num_pages); in ocfs2_convert_inline_data_to_extents() 6990 for (i = 0; i < num_pages; i++) in ocfs2_convert_inline_data_to_extents() 7024 ocfs2_unlock_and_free_pages(pages, num_pages); in ocfs2_convert_inline_data_to_extents()
|
/fs/proc/ |
D | task_mmu.c | 140 unsigned long num_pages; in seq_print_vma_name() local 146 num_pages = DIV_ROUND_UP(page_offset + max_len, PAGE_SIZE); in seq_print_vma_name() 150 for (i = 0; i < num_pages; i++) { in seq_print_vma_name()
|