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

/fs/fuse/
H A Dfile.c389 if (idx_from < curr_index + req->num_pages &&
568 for (i = 0; i < req->num_pages; i++) {
721 for (i = start_idx; i < req->num_pages; i++) {
758 req->num_pages = 1;
802 for (i = 0; mapping == NULL && i < req->num_pages; i++)
817 for (i = 0; i < req->num_pages; i++) {
835 size_t count = req->num_pages << PAGE_CACHE_SHIFT;
869 if (req->num_pages &&
870 (req->num_pages == FUSE_MAX_PAGES_PER_REQ ||
871 (req->num_pages
1763 int num_pages = req->num_pages; local
2529 unsigned int in_iovs = 0, out_iovs = 0, num_pages = 0, max_pages; local
[all...]
H A Ddev.c958 for (i = 0; i < req->num_pages && (nbytes || zeroing); i++) {
1616 release_pages(req->pages, req->num_pages, false);
1630 int num_pages; local
1641 num_pages = (num + offset + PAGE_SIZE - 1) >> PAGE_SHIFT;
1642 num_pages = min(num_pages, FUSE_MAX_PAGES_PER_REQ);
1644 req = fuse_get_req(fc, num_pages);
1657 while (num && req->num_pages < num_pages) {
1666 req->pages[req->num_pages]
[all...]
H A Dfuse_i.h346 unsigned num_pages; member in struct:fuse_req
H A Dcuse.c464 req->num_pages = 1;
H A Ddir.c1413 req->num_pages = 1;
/fs/ceph/
H A Dfile.c345 struct page **pages, int num_pages,
365 pages_left = num_pages;
435 int num_pages, ret; local
464 num_pages = (n + start + PAGE_SIZE - 1) / PAGE_SIZE;
467 pages, num_pages, checkeof,
470 ceph_put_page_vector(pages, num_pages, true);
480 num_pages = calc_pages_for(off, len);
481 pages = ceph_alloc_page_vector(num_pages, GFP_NOFS);
485 num_pages, checkeof, 0, 0);
502 ceph_release_page_vector(pages, num_pages);
343 striped_read(struct inode *inode, u64 off, u64 len, struct page **pages, int num_pages, int *checkeof, bool o_direct, unsigned long buf_align) argument
565 int num_pages; local
681 int num_pages; local
[all...]
H A Daddr.c244 int num_pages; local
252 num_pages = calc_pages_for((u64)osd_data->alignment,
254 for (i = 0; i < num_pages; i++) {
277 static void ceph_unlock_page_vector(struct page **pages, int num_pages) argument
281 for (i = 0; i < num_pages; i++)
585 int num_pages; local
597 num_pages = calc_pages_for((u64)osd_data->alignment,
606 wrote = num_pages;
615 for (i = 0; i < num_pages; i++) {
645 ceph_put_wrbuffer_cap_refs(ci, num_pages, snap
[all...]
/fs/ocfs2/
H A Daops.h36 void ocfs2_unlock_and_free_pages(struct page **pages, int num_pages);
H A Daops.c884 void ocfs2_unlock_and_free_pages(struct page **pages, int num_pages) argument
888 for(i = 0; i < num_pages; i++) {
H A Dalloc.c6837 int ret, i, has_data, num_pages = 0; local
6917 ret = ocfs2_grab_eof_pages(inode, 0, end, pages, &num_pages);
6939 for (i = 0; i < num_pages; i++)
6996 ocfs2_unlock_and_free_pages(pages, num_pages);
/fs/btrfs/
H A Dfile.c413 static noinline int btrfs_copy_from_user(loff_t pos, int num_pages, argument
468 static void btrfs_drop_pages(struct page **pages, size_t num_pages) argument
471 for (i = 0; i < num_pages; i++) {
493 struct page **pages, size_t num_pages,
514 for (i = 0; i < num_pages; i++) {
1313 size_t num_pages, loff_t pos,
1322 for (i = 0; i < num_pages; i++) {
1334 if (i == num_pages - 1)
1368 size_t num_pages, loff_t pos,
1378 last_pos = start_pos + ((u64)num_pages << PAGE_CACHE_SHIF
492 btrfs_dirty_pages(struct btrfs_root *root, struct inode *inode, struct page **pages, size_t num_pages, loff_t pos, size_t write_bytes, struct extent_state **cached) argument
1312 prepare_pages(struct inode *inode, struct page **pages, size_t num_pages, loff_t pos, size_t write_bytes, bool force_uptodate) argument
1367 lock_and_cleanup_extent_if_need(struct inode *inode, struct page **pages, size_t num_pages, loff_t pos, u64 *lockstart, u64 *lockend, struct extent_state **cached_state) argument
1499 size_t num_pages = DIV_ROUND_UP(write_bytes + offset, local
[all...]
H A Dcheck-integrity.c337 char **datav, unsigned int num_pages);
340 unsigned int num_pages,
1632 unsigned int num_pages; local
1636 num_pages = (block_ctx->len + (u64)PAGE_CACHE_SIZE - 1) >>
1638 while (num_pages > 0) {
1639 num_pages--;
1640 if (block_ctx->datav[num_pages]) {
1641 kunmap(block_ctx->pagev[num_pages]);
1642 block_ctx->datav[num_pages] = NULL;
1644 if (block_ctx->pagev[num_pages]) {
1660 unsigned int num_pages; local
1806 btrfsic_test_for_metadata(struct btrfsic_state *state, char **datav, unsigned int num_pages) argument
1836 btrfsic_process_written_block(struct btrfsic_dev_state *dev_state, u64 dev_bytenr, char **mapped_datav, unsigned int num_pages, struct bio *bio, int *bio_is_patched, struct buffer_head *bh, int submit_bio_bh_rw) argument
[all...]
H A Dextent_io.c2060 unsigned long i, num_pages = num_extent_pages(eb->start, eb->len); local
2066 for (i = 0; i < num_pages; i++) {
3531 unsigned long i, num_pages; local
3581 num_pages = num_extent_pages(eb->start, eb->len);
3582 for (i = 0; i < num_pages; i++) {
3703 unsigned long i, num_pages; local
3709 num_pages = num_extent_pages(eb->start, eb->len);
3710 atomic_set(&eb->io_pages, num_pages);
3714 for (i = 0; i < num_pages; i++) {
3727 if (atomic_sub_and_test(num_pages
4617 unsigned long num_pages = num_extent_pages(src->start, src->len); local
4645 unsigned long num_pages = num_extent_pages(0, len); local
4705 unsigned long num_pages, i; local
4786 unsigned long num_pages = num_extent_pages(start, len); local
4986 unsigned long num_pages; local
5016 unsigned long num_pages; local
5036 unsigned long num_pages; local
5052 unsigned long num_pages; local
5079 unsigned long num_pages; local
[all...]
H A Dfree-space-cache.c272 int num_pages; member in struct:io_ctl
279 int num_pages; local
282 num_pages = DIV_ROUND_UP(i_size_read(inode), PAGE_CACHE_SIZE);
289 (num_pages * sizeof(u32)) >= PAGE_CACHE_SIZE)
294 io_ctl->pages = kzalloc(sizeof(struct page *) * num_pages, GFP_NOFS);
298 io_ctl->num_pages = num_pages;
321 ASSERT(io_ctl->index < io_ctl->num_pages);
336 for (i = 0; i < io_ctl->num_pages; i++) {
352 for (i = 0; i < io_ctl->num_pages;
[all...]
H A Draid56.c928 int num_pages = rbio_nr_pages(stripe_len, bbio->num_stripes); local
931 rbio = kzalloc(sizeof(*rbio) + num_pages * sizeof(struct page *) * 2,
948 rbio->nr_pages = num_pages;
959 rbio->bio_pages = p + sizeof(struct page *) * num_pages;
H A Dextent-tree.c3186 int num_pages = 0; local
3270 num_pages = (int)div64_u64(block_group->key.offset, 256 * 1024 * 1024);
3271 if (!num_pages)
3272 num_pages = 1;
3274 num_pages *= 16;
3275 num_pages *= PAGE_CACHE_SIZE;
3277 ret = btrfs_check_data_free_space(inode, num_pages);
3281 ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, num_pages,
3282 num_pages, num_pages,
[all...]
H A Dioctl.c1117 unsigned long num_pages)
1136 page_cnt = min_t(u64, (u64)num_pages, (u64)file_end - start_index + 1);
1114 cluster_pages_for_defrag(struct inode *inode, struct page **pages, unsigned long start_index, unsigned long num_pages) argument
H A Dctree.h3901 struct page **pages, size_t num_pages,
/fs/exofs/
H A Dore_raid.c639 unsigned num_pages; local
645 num_pages = _sp2d_max_pg(sp2d) + 1 - si->cur_pg;
660 for (i = 0; i < num_pages; i++) {
669 BUG_ON(si->cur_pg + num_pages > sp2d->pages_in_unit);
672 per_dev, num_pages * PAGE_SIZE);
/fs/cifs/
H A Dfile.c2353 cifs_write_allocate_pages(struct page **pages, unsigned long num_pages) argument
2358 for (i = 0; i < num_pages; i++) {
2365 num_pages = i;
2372 for (i = 0; i < num_pages; i++)
2381 size_t num_pages; local
2385 num_pages = DIV_ROUND_UP(clen, PAGE_SIZE);
2390 return num_pages;
2426 size_t *len, unsigned long *num_pages)
2429 unsigned long i, nr_pages = *num_pages;
2462 *num_pages
2425 wdata_fill_from_iovec(struct cifs_writedata *wdata, struct iov_iter *from, size_t *len, unsigned long *num_pages) argument
2473 unsigned long nr_pages, num_pages, i; local
3459 cifs_readpages(struct file *file, struct address_space *mapping, struct list_head *page_list, unsigned num_pages) argument
[all...]
/fs/proc/
H A Dtask_mmu.c121 unsigned long num_pages; local
127 num_pages = DIV_ROUND_UP(page_offset + max_len, PAGE_SIZE);
131 for (i = 0; i < num_pages; i++) {

Completed in 4500 milliseconds