Home
last modified time | relevance | path

Searched refs:new_pages (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/block/drbd/
H A Ddrbd_bitmap.c381 struct page **new_pages, *page; in bm_realloc_pages() local
397 new_pages = kzalloc(bytes, GFP_NOIO | __GFP_NOWARN); in bm_realloc_pages()
398 if (!new_pages) { in bm_realloc_pages()
399 new_pages = __vmalloc(bytes, GFP_NOIO | __GFP_ZERO); in bm_realloc_pages()
400 if (!new_pages) in bm_realloc_pages()
406 new_pages[i] = old_pages[i]; in bm_realloc_pages()
410 bm_free_pages(new_pages + have, i - have); in bm_realloc_pages()
411 bm_vk_free(new_pages); in bm_realloc_pages()
417 new_pages[i] = page; in bm_realloc_pages()
421 new_pages[i] = old_pages[i]; in bm_realloc_pages()
[all …]
/linux/drivers/virtio/
H A Dvirtio_mem.c405 int new_pages = PFN_UP(new_bytes); in virtio_mem_bbm_bb_states_prepare_next_bb() local
408 if (vm->bbm.bb_states && old_pages == new_pages) in virtio_mem_bbm_bb_states_prepare_next_bb()
411 new_array = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_bbm_bb_states_prepare_next_bb()
471 int new_pages = PFN_UP(vm->sbm.next_mb_id - vm->sbm.first_mb_id + 1); in virtio_mem_sbm_mb_states_prepare_next_mb() local
474 if (vm->sbm.mb_states && old_pages == new_pages) in virtio_mem_sbm_mb_states_prepare_next_mb()
477 new_array = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_sbm_mb_states_prepare_next_mb()
594 int new_pages = PFN_UP(BITS_TO_LONGS(new_nb_bits) * sizeof(long)); in virtio_mem_sbm_sb_states_prepare_next_mb() local
597 if (vm->sbm.sb_states && old_pages == new_pages) in virtio_mem_sbm_sb_states_prepare_next_mb()
600 new_bitmap = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_sbm_sb_states_prepare_next_mb()
/linux/kernel/trace/
H A Dring_buffer.c565 struct list_head new_pages; /* new pages to add */ member
2625 INIT_LIST_HEAD(&cpu_buffer->new_pages); in rb_allocate_cpu_buffer()
3152 struct list_head *pages = &cpu_buffer->new_pages; in rb_insert_pages()
3222 list_for_each_entry_safe(bpage, tmp, &cpu_buffer->new_pages, in rb_insert_pages()
3326 INIT_LIST_HEAD(&cpu_buffer->new_pages); in ring_buffer_resize()
3328 &cpu_buffer->new_pages)) { in ring_buffer_resize()
3395 INIT_LIST_HEAD(&cpu_buffer->new_pages); in ring_buffer_resize()
3398 &cpu_buffer->new_pages)) { in ring_buffer_resize()
3458 if (list_empty(&cpu_buffer->new_pages)) in ring_buffer_resize()
3461 list_for_each_entry_safe(bpage, tmp, &cpu_buffer->new_pages, in ring_buffer_resize()
[all …]
/linux/io_uring/
H A Drsrc.c86 unsigned long page_limit, cur_pages, new_pages; in __io_account_mem() local
96 new_pages = cur_pages + nr_pages; in __io_account_mem()
97 if (new_pages > page_limit) in __io_account_mem()
100 &cur_pages, new_pages)); in __io_account_mem()
/linux/drivers/iommu/iommufd/
H A Dpages.c960 unsigned long new_pages; in incr_user_locked_vm() local
967 new_pages = cur_pages + npages; in incr_user_locked_vm()
968 if (new_pages > lock_limit) in incr_user_locked_vm()
971 &cur_pages, new_pages)); in incr_user_locked_vm()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_free_list.c386 resp->new_pages = free_list->current_pages + free_list->ready_pages; in pvr_free_list_process_grow_req()