Home
last modified time | relevance | path

Searched refs:prealloc (Results 1 – 25 of 27) sorted by relevance

12

/linux/fs/btrfs/
H A Dextent-io-tree.c166 static struct extent_state *alloc_extent_state_atomic(struct extent_state *prealloc) in alloc_extent_state_atomic() argument
168 if (!prealloc) in alloc_extent_state_atomic()
169 prealloc = alloc_extent_state(GFP_ATOMIC); in alloc_extent_state_atomic()
171 return prealloc; in alloc_extent_state_atomic()
504 struct extent_state *prealloc, u64 split) in split_state() argument
512 prealloc->start = orig->start; in split_state()
513 prealloc->end = split - 1; in split_state()
514 prealloc->state = orig->state; in split_state()
525 if (prealloc->end < entry->start) { in split_state()
527 } else if (prealloc->end > entry->end) { in split_state()
[all …]
H A Dulist.c53 ulist->prealloc = NULL; in ulist_init()
72 kfree(ulist->prealloc); in ulist_release()
73 ulist->prealloc = NULL; in ulist_release()
113 if (!ulist->prealloc) in ulist_prealloc()
114 ulist->prealloc = kzalloc(sizeof(*ulist->prealloc), gfp_mask); in ulist_prealloc()
218 if (ulist->prealloc) { in ulist_add_merge()
219 node = ulist->prealloc; in ulist_add_merge()
220 ulist->prealloc = NULL; in ulist_add_merge()
H A Dulist.h44 struct ulist_node *prealloc; member
H A Dextent_io.c867 struct btrfs_folio_state *prealloc) in attach_extent_buffer_folio() argument
891 btrfs_free_folio_state(prealloc); in attach_extent_buffer_folio()
895 if (prealloc) in attach_extent_buffer_folio()
897 folio_attach_private(folio, prealloc); in attach_extent_buffer_folio()
3297 struct btrfs_folio_state *prealloc, in attach_eb_folio_to_filemap() argument
3358 ret = attach_extent_buffer_folio(eb, eb->folios[i], prealloc); in attach_eb_folio_to_filemap()
3380 struct btrfs_folio_state *prealloc = NULL; in alloc_extent_buffer() local
3425 prealloc = btrfs_alloc_folio_state(fs_info, PAGE_SIZE, BTRFS_SUBPAGE_METADATA); in alloc_extent_buffer()
3426 if (IS_ERR(prealloc)) { in alloc_extent_buffer()
3427 ret = PTR_ERR(prealloc); in alloc_extent_buffer()
[all …]
H A Dqgroup.h342 struct btrfs_qgroup_list *prealloc);
H A Dioctl.c3664 struct btrfs_qgroup_list *prealloc = NULL; in btrfs_ioctl_qgroup_assign() local
3686 prealloc = kzalloc(sizeof(*prealloc), GFP_KERNEL); in btrfs_ioctl_qgroup_assign()
3687 if (!prealloc) { in btrfs_ioctl_qgroup_assign()
3704 ret = btrfs_add_qgroup_relation(trans, sa->src, sa->dst, prealloc); in btrfs_ioctl_qgroup_assign()
3705 prealloc = NULL; in btrfs_ioctl_qgroup_assign()
3723 kfree(prealloc); in btrfs_ioctl_qgroup_assign()
/linux/lib/
H A Dstackdepot.c293 static bool depot_init_pool(void **prealloc) in depot_init_pool() argument
305 if (!new_pool && *prealloc) { in depot_init_pool()
307 WRITE_ONCE(new_pool, *prealloc); in depot_init_pool()
308 *prealloc = NULL; in depot_init_pool()
340 static void depot_keep_new_pool(void **prealloc) in depot_keep_new_pool() argument
351 WRITE_ONCE(new_pool, *prealloc); in depot_keep_new_pool()
352 *prealloc = NULL; in depot_keep_new_pool()
359 static struct stack_record *depot_pop_free_pool(void **prealloc, size_t size) in depot_pop_free_pool() argument
368 if (!depot_init_pool(prealloc)) in depot_pop_free_pool()
430 …ck(unsigned long *entries, unsigned int nr_entries, u32 hash, depot_flags_t flags, void **prealloc) in depot_alloc_stack() argument
[all …]
/linux/net/sched/
H A Dsch_gred.c484 struct gred_sched_data **prealloc, in gred_change_vq() argument
496 table->tab[dp] = q = *prealloc; in gred_change_vq()
497 *prealloc = NULL; in gred_change_vq()
651 struct gred_sched_data *prealloc; in gred_change() local
703 prealloc = kzalloc(sizeof(*prealloc), GFP_KERNEL); in gred_change()
706 err = gred_change_vq(sch, ctl->DP, ctl, prio, stab, max_P, &prealloc, in gred_change()
721 kfree(prealloc); in gred_change()
728 kfree(prealloc); in gred_change()
/linux/drivers/gpu/drm/msm/
H A Dmsm_gem_vma.c118 struct msm_mmu_prealloc prealloc; member
706 vm->mmu->prealloc = &job->prealloc; in msm_vma_job_run()
731 vm->mmu->prealloc = NULL; in msm_vma_job_run()
758 vm->mmu->funcs->prealloc_cleanup(vm->mmu, &job->prealloc); in msm_vma_job_free()
760 atomic_sub(job->prealloc.count, &vm->prealloc_throttle.in_flight); in msm_vma_job_free()
1156 mmu->funcs->prealloc_count(mmu, &job->prealloc, start_iova, end_iova - start_iova); in prealloc_count()
1224 atomic_add(job->prealloc.count, &vm->prealloc_throttle.in_flight); in vm_bind_prealloc_count()
1352 ret = mmu->funcs->prealloc_allocate(mmu, &job->prealloc); in vm_bind_job_prepare()
H A Dmsm_mmu.h66 struct msm_mmu_prealloc *prealloc; member
H A Dmsm_iommu.c384 struct msm_mmu_prealloc *p = pagetable->base.prealloc; in msm_iommu_pagetable_alloc_pt()
/linux/arch/arc/lib/
H A Dmemset-archs.S21 prealloc [\reg, \off]
/linux/drivers/media/platform/renesas/vsp1/
H A Dvsp1_dl.h56 unsigned int prealloc);
/linux/drivers/gpu/drm/i915/display/
H A Dintel_fbdev.c274 bool prealloc = false; in intel_fbdev_driver_fbdev_probe() local
305 prealloc = true; in intel_fbdev_driver_fbdev_probe()
341 if (!intel_bo_is_shmem(obj) && !prealloc) in intel_fbdev_driver_fbdev_probe()
/linux/tools/testing/selftests/net/
H A Dlwt_dst_cache_ref_loop.sh59 encap ioam6 trace prealloc type 0x800000 ns 0 size 4 \
168 encap ioam6 trace prealloc type 0x800000 ns 1 size 4 \
/linux/fs/xfs/
H A Dxfs_iomap.c1462 xfs_filblks_t prealloc, in xfs_bmapi_reserve_delalloc() argument
1475 whichfork == XFS_COW_FORK && !prealloc; in xfs_bmapi_reserve_delalloc()
1483 alen = XFS_FILBLKS_MIN(len + prealloc, XFS_MAX_BMBT_EXTLEN); in xfs_bmapi_reserve_delalloc()
1486 if (prealloc && alen >= len) in xfs_bmapi_reserve_delalloc()
1487 prealloc = alen - len; in xfs_bmapi_reserve_delalloc()
1555 if (whichfork == XFS_DATA_FORK && prealloc) in xfs_bmapi_reserve_delalloc()
1557 if (whichfork == XFS_COW_FORK && (prealloc || aoff < off || alen > len)) in xfs_bmapi_reserve_delalloc()
1572 if (prealloc || use_cowextszhint) { in xfs_bmapi_reserve_delalloc()
1575 prealloc = 0; in xfs_bmapi_reserve_delalloc()
/linux/drivers/md/
H A Ddm-cache-target.c1403 struct dm_bio_prison_cell_v2 *prealloc; in mg_lock_writes() local
1405 prealloc = alloc_prison_cell(cache); in mg_lock_writes()
1415 prealloc, &mg->cell); in mg_lock_writes()
1417 free_prison_cell(cache, prealloc); in mg_lock_writes()
1422 if (mg->cell != prealloc) in mg_lock_writes()
1423 free_prison_cell(cache, prealloc); in mg_lock_writes()
1533 struct dm_bio_prison_cell_v2 *prealloc; in invalidate_lock() local
1535 prealloc = alloc_prison_cell(cache); in invalidate_lock()
1539 READ_WRITE_LOCK_LEVEL, prealloc, &mg->cell); in invalidate_lock()
1541 free_prison_cell(cache, prealloc); in invalidate_lock()
[all …]
/linux/drivers/usb/gadget/function/
H A Du_ether.c313 static int prealloc(struct list_head *list, struct usb_ep *ep, unsigned n) in prealloc() function
357 status = prealloc(&dev->tx_reqs, link->in_ep, n); in alloc_requests()
360 status = prealloc(&dev->rx_reqs, link->out_ep, n); in alloc_requests()
/linux/mm/
H A Dmemory.c1049 struct folio **prealloc, struct page *page) in copy_present_page() argument
1054 new_folio = *prealloc; in copy_present_page()
1066 *prealloc = NULL; in copy_present_page()
1115 int max_nr, int *rss, struct folio **prealloc) in copy_present_ptes() argument
1133 if (unlikely(!*prealloc && folio_test_large(folio) && max_nr != 1)) { in copy_present_ptes()
1170 addr, rss, prealloc, page); in copy_present_ptes()
1222 struct folio *prealloc = NULL; in copy_pte_range() local
1305 ptent, addr, max_nr, rss, &prealloc); in copy_pte_range()
1313 if (unlikely(prealloc)) { in copy_pte_range()
1320 folio_put(prealloc); in copy_pte_range()
[all …]
/linux/sound/hda/common/
H A DKconfig95 via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
/linux/Documentation/filesystems/
H A Dntfs3.rst102 * - prealloc
/linux/fs/kernfs/
H A Dfile.c687 if (ops->prealloc && ops->seq_show) in kernfs_fop_open()
689 if (ops->prealloc) { in kernfs_fop_open()
/linux/fs/ntfs3/
H A Dfile.c532 &new_valid, ni->mi.sbi->options->prealloc, NULL); in ntfs_truncate()
1377 if (sbi->options->prealloc && in ntfs_file_release()
/linux/Documentation/sound/designs/
H A Dprocfile.rst136 ``card*/pcm*/sub*/prealloc``
/linux/fs/f2fs/
H A Ddata.c1541 blkcnt_t prealloc; in f2fs_map_blocks() local
1590 prealloc = 0; in f2fs_map_blocks()
1615 prealloc++; in f2fs_map_blocks()
1711 err = f2fs_reserve_new_blocks(&dn, prealloc); in f2fs_map_blocks()
1716 if (prealloc && dn.ofs_in_node != last_ofs_in_node + 1) { in f2fs_map_blocks()

12