Home
last modified time | relevance | path

Searched refs:num_pages (Results 1 – 21 of 21) sorted by relevance

/fs/fuse/
Dfile.c389 if (idx_from < curr_index + req->num_pages && in fuse_range_is_writeback()
592 for (i = 0; i < req->num_pages; i++) { in fuse_release_user_pages()
745 for (i = start_idx; i < req->num_pages; i++) { in fuse_short_read()
782 req->num_pages = 1; in fuse_do_readpage()
826 for (i = 0; mapping == NULL && i < req->num_pages; i++) in fuse_readpages_end()
841 for (i = 0; i < req->num_pages; i++) { in fuse_readpages_end()
859 size_t count = req->num_pages << PAGE_CACHE_SHIFT; in fuse_send_readpages()
893 if (req->num_pages && in fuse_readpages_fill()
894 (req->num_pages == FUSE_MAX_PAGES_PER_REQ || in fuse_readpages_fill()
895 (req->num_pages + 1) * PAGE_CACHE_SIZE > fc->max_read || in fuse_readpages_fill()
[all …]
Ddev.c959 for (i = 0; i < req->num_pages && (nbytes || zeroing); i++) { in fuse_copy_pages()
1617 release_pages(req->pages, req->num_pages, false); in fuse_retrieve_end()
1631 int num_pages; in fuse_retrieve() local
1642 num_pages = (num + offset + PAGE_SIZE - 1) >> PAGE_SHIFT; in fuse_retrieve()
1643 num_pages = min(num_pages, FUSE_MAX_PAGES_PER_REQ); in fuse_retrieve()
1645 req = fuse_get_req(fc, num_pages); in fuse_retrieve()
1658 while (num && req->num_pages < num_pages) { in fuse_retrieve()
1667 req->pages[req->num_pages] = page; in fuse_retrieve()
1668 req->page_descs[req->num_pages].length = this_num; in fuse_retrieve()
1669 req->num_pages++; in fuse_retrieve()
Dfuse_i.h346 unsigned num_pages; member
Dcuse.c464 req->num_pages = 1; in cuse_send_init()
Ddir.c1459 req->num_pages = 1; in fuse_readdir()
/fs/ceph/
Dfile.c345 struct page **pages, int num_pages, in striped_read() argument
365 pages_left = num_pages; in striped_read()
435 int num_pages, ret; in ceph_sync_read() local
464 num_pages = (n + start + PAGE_SIZE - 1) / PAGE_SIZE; in ceph_sync_read()
467 pages, num_pages, checkeof, in ceph_sync_read()
470 ceph_put_page_vector(pages, num_pages, true); in ceph_sync_read()
480 num_pages = calc_pages_for(off, len); in ceph_sync_read()
481 pages = ceph_alloc_page_vector(num_pages, GFP_NOFS); in ceph_sync_read()
485 num_pages, checkeof, 0, 0); in ceph_sync_read()
502 ceph_release_page_vector(pages, num_pages); in ceph_sync_read()
[all …]
Daddr.c244 int num_pages; in finish_read() local
252 num_pages = calc_pages_for((u64)osd_data->alignment, in finish_read()
254 for (i = 0; i < num_pages; i++) { in finish_read()
277 static void ceph_unlock_page_vector(struct page **pages, int num_pages) in ceph_unlock_page_vector() argument
281 for (i = 0; i < num_pages; i++) in ceph_unlock_page_vector()
585 int num_pages; in writepages_finish() local
597 num_pages = calc_pages_for((u64)osd_data->alignment, in writepages_finish()
606 wrote = num_pages; in writepages_finish()
615 for (i = 0; i < num_pages; i++) { in writepages_finish()
645 ceph_put_wrbuffer_cap_refs(ci, num_pages, snapc); in writepages_finish()
[all …]
/fs/btrfs/
Dcheck-integrity.c337 char **datav, unsigned int num_pages);
340 unsigned int num_pages,
1632 unsigned int num_pages; in btrfsic_release_block_ctx() local
1636 num_pages = (block_ctx->len + (u64)PAGE_CACHE_SIZE - 1) >> in btrfsic_release_block_ctx()
1638 while (num_pages > 0) { in btrfsic_release_block_ctx()
1639 num_pages--; in btrfsic_release_block_ctx()
1640 if (block_ctx->datav[num_pages]) { in btrfsic_release_block_ctx()
1641 kunmap(block_ctx->pagev[num_pages]); in btrfsic_release_block_ctx()
1642 block_ctx->datav[num_pages] = NULL; in btrfsic_release_block_ctx()
1644 if (block_ctx->pagev[num_pages]) { in btrfsic_release_block_ctx()
[all …]
Dfile.c413 static noinline int btrfs_copy_from_user(loff_t pos, int num_pages, in btrfs_copy_from_user() argument
468 static void btrfs_drop_pages(struct page **pages, size_t num_pages) in btrfs_drop_pages() argument
471 for (i = 0; i < num_pages; i++) { in btrfs_drop_pages()
493 struct page **pages, size_t num_pages, in btrfs_dirty_pages() argument
514 for (i = 0; i < num_pages; i++) { in btrfs_dirty_pages()
1321 size_t num_pages, loff_t pos, in prepare_pages() argument
1330 for (i = 0; i < num_pages; i++) { in prepare_pages()
1342 if (i == num_pages - 1) in prepare_pages()
1376 size_t num_pages, loff_t pos, in lock_and_cleanup_extent_if_need() argument
1386 last_pos = start_pos + ((u64)num_pages << PAGE_CACHE_SHIFT) - 1; in lock_and_cleanup_extent_if_need()
[all …]
Dextent_io.c2060 unsigned long i, num_pages = num_extent_pages(eb->start, eb->len); in repair_eb_io_failure() local
2066 for (i = 0; i < num_pages; i++) { in repair_eb_io_failure()
3582 unsigned long i, num_pages; in lock_extent_buffer_for_io() local
3632 num_pages = num_extent_pages(eb->start, eb->len); in lock_extent_buffer_for_io()
3633 for (i = 0; i < num_pages; i++) { in lock_extent_buffer_for_io()
3754 unsigned long i, num_pages; in write_one_eb() local
3760 num_pages = num_extent_pages(eb->start, eb->len); in write_one_eb()
3761 atomic_set(&eb->io_pages, num_pages); in write_one_eb()
3765 for (i = 0; i < num_pages; i++) { in write_one_eb()
3778 if (atomic_sub_and_test(num_pages - i, &eb->io_pages)) in write_one_eb()
[all …]
Dfree-space-cache.c272 int num_pages; member
279 int num_pages; in io_ctl_init() local
282 num_pages = DIV_ROUND_UP(i_size_read(inode), PAGE_CACHE_SIZE); in io_ctl_init()
289 (num_pages * sizeof(u32)) >= PAGE_CACHE_SIZE) in io_ctl_init()
294 io_ctl->pages = kzalloc(sizeof(struct page *) * num_pages, GFP_NOFS); in io_ctl_init()
298 io_ctl->num_pages = num_pages; in io_ctl_init()
321 ASSERT(io_ctl->index < io_ctl->num_pages); in io_ctl_map_page()
336 for (i = 0; i < io_ctl->num_pages; i++) { in io_ctl_drop_pages()
352 for (i = 0; i < io_ctl->num_pages; i++) { in io_ctl_prepare_pages()
371 for (i = 0; i < io_ctl->num_pages; i++) { in io_ctl_prepare_pages()
[all …]
Draid56.c928 int num_pages = rbio_nr_pages(stripe_len, bbio->num_stripes); in alloc_rbio() local
931 rbio = kzalloc(sizeof(*rbio) + num_pages * sizeof(struct page *) * 2, in alloc_rbio()
948 rbio->nr_pages = num_pages; in alloc_rbio()
959 rbio->bio_pages = p + sizeof(struct page *) * num_pages; in alloc_rbio()
Dextent-tree.c3186 int num_pages = 0; in cache_save_setup() local
3270 num_pages = (int)div64_u64(block_group->key.offset, 256 * 1024 * 1024); in cache_save_setup()
3271 if (!num_pages) in cache_save_setup()
3272 num_pages = 1; in cache_save_setup()
3274 num_pages *= 16; in cache_save_setup()
3275 num_pages *= PAGE_CACHE_SIZE; in cache_save_setup()
3277 ret = btrfs_check_data_free_space(inode, num_pages); in cache_save_setup()
3281 ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, num_pages, in cache_save_setup()
3282 num_pages, num_pages, in cache_save_setup()
3286 btrfs_free_reserved_data_space(inode, num_pages); in cache_save_setup()
Dioctl.c1117 unsigned long num_pages) in cluster_pages_for_defrag() argument
1136 page_cnt = min_t(u64, (u64)num_pages, (u64)file_end - start_index + 1); in cluster_pages_for_defrag()
Dctree.h3907 struct page **pages, size_t num_pages,
/fs/exofs/
Dore_raid.c639 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/
Dfile.c2365 cifs_write_allocate_pages(struct page **pages, unsigned long num_pages) in cifs_write_allocate_pages() argument
2370 for (i = 0; i < num_pages; i++) { in cifs_write_allocate_pages()
2377 num_pages = i; in cifs_write_allocate_pages()
2384 for (i = 0; i < num_pages; i++) in cifs_write_allocate_pages()
2393 size_t num_pages; in get_numpages() local
2397 num_pages = DIV_ROUND_UP(clen, PAGE_SIZE); in get_numpages()
2402 return num_pages; in get_numpages()
2438 size_t *len, unsigned long *num_pages) in wdata_fill_from_iovec() argument
2441 unsigned long i, nr_pages = *num_pages; in wdata_fill_from_iovec()
2474 *num_pages = i + 1; in wdata_fill_from_iovec()
[all …]
/fs/ocfs2/
Daops.h36 void ocfs2_unlock_and_free_pages(struct page **pages, int num_pages);
Daops.c884 void ocfs2_unlock_and_free_pages(struct page **pages, int num_pages) in ocfs2_unlock_and_free_pages() argument
888 for(i = 0; i < num_pages; i++) { in ocfs2_unlock_and_free_pages()
Dalloc.c6837 int ret, i, has_data, num_pages = 0; in ocfs2_convert_inline_data_to_extents() local
6917 ret = ocfs2_grab_eof_pages(inode, 0, end, pages, &num_pages); in ocfs2_convert_inline_data_to_extents()
6939 for (i = 0; i < num_pages; i++) in ocfs2_convert_inline_data_to_extents()
6996 ocfs2_unlock_and_free_pages(pages, num_pages); in ocfs2_convert_inline_data_to_extents()
/fs/proc/
Dtask_mmu.c121 unsigned long num_pages; in seq_print_vma_name() local
127 num_pages = DIV_ROUND_UP(page_offset + max_len, PAGE_SIZE); in seq_print_vma_name()
131 for (i = 0; i < num_pages; i++) { in seq_print_vma_name()