Home
last modified time | relevance | path

Searched refs:prealloc (Results 1 - 25 of 49) sorted by relevance

12

/kernel/linux/linux-6.6/fs/btrfs/
H A Dextent-io-tree.c158 static struct extent_state *alloc_extent_state_atomic(struct extent_state *prealloc) in alloc_extent_state_atomic() argument
160 if (!prealloc) in alloc_extent_state_atomic()
161 prealloc = alloc_extent_state(GFP_ATOMIC); in alloc_extent_state_atomic()
163 return prealloc; in alloc_extent_state_atomic()
445 * struct 'prealloc' as the newly created second half. 'split' indicates an
451 * prealloc: [orig->start, split - 1]
458 struct extent_state *prealloc, u64 split) in split_state()
466 prealloc->start = orig->start; in split_state()
467 prealloc->end = split - 1; in split_state()
468 prealloc in split_state()
457 split_state(struct extent_io_tree *tree, struct extent_state *orig, struct extent_state *prealloc, u64 split) split_state() argument
563 struct extent_state *prealloc = NULL; __clear_extent_bit() local
987 struct extent_state *prealloc = NULL; __set_extent_bit() local
1235 struct extent_state *prealloc = NULL; convert_extent_bit() local
[all...]
/kernel/linux/linux-5.10/lib/
H A Dstackdepot.c75 static bool init_stack_slab(void **prealloc) in init_stack_slab() argument
77 if (!*prealloc) in init_stack_slab()
86 stack_slabs[depot_index] = *prealloc; in init_stack_slab()
87 *prealloc = NULL; in init_stack_slab()
91 stack_slabs[depot_index + 1] = *prealloc; in init_stack_slab()
92 *prealloc = NULL; in init_stack_slab()
105 u32 hash, void **prealloc, gfp_t alloc_flags) in depot_alloc_stack()
128 init_stack_slab(prealloc); in depot_alloc_stack()
242 void *prealloc = NULL; in stack_depot_save() local
281 prealloc in stack_depot_save()
104 depot_alloc_stack(unsigned long *entries, int size, u32 hash, void **prealloc, gfp_t alloc_flags) depot_alloc_stack() argument
[all...]
/kernel/linux/linux-6.6/lib/
H A Dstackdepot.c222 static void depot_init_pool(void **prealloc) in depot_init_pool() argument
236 stack_pools[pool_index] = *prealloc; in depot_init_pool()
237 *prealloc = NULL; in depot_init_pool()
244 stack_pools[pool_index + 1] = *prealloc; in depot_init_pool()
245 *prealloc = NULL; in depot_init_pool()
260 depot_alloc_stack(unsigned long *entries, int size, u32 hash, void **prealloc) in depot_alloc_stack() argument
293 if (*prealloc) in depot_alloc_stack()
294 depot_init_pool(prealloc); in depot_alloc_stack()
365 void *prealloc = NULL; in __stack_depot_save() local
412 prealloc in __stack_depot_save()
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Dinode-map.c409 int prealloc; in btrfs_save_ino_cache() local
490 prealloc = sizeof(struct btrfs_free_space) * ctl->free_extents; in btrfs_save_ino_cache()
491 prealloc = ALIGN(prealloc, PAGE_SIZE); in btrfs_save_ino_cache()
492 prealloc += ctl->total_bitmaps * PAGE_SIZE; in btrfs_save_ino_cache()
496 prealloc += 8 * PAGE_SIZE; in btrfs_save_ino_cache()
499 prealloc); in btrfs_save_ino_cache()
503 ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, prealloc, in btrfs_save_ino_cache()
504 prealloc, prealloc, in btrfs_save_ino_cache()
506 btrfs_delalloc_release_extents(BTRFS_I(inode), prealloc); btrfs_save_ino_cache() local
507 btrfs_delalloc_release_metadata(BTRFS_I(inode), prealloc, true); btrfs_save_ino_cache() local
512 btrfs_delalloc_release_extents(BTRFS_I(inode), prealloc); btrfs_save_ino_cache() local
[all...]
H A Dextent_io.c579 * struct 'prealloc' as the newly created second half. 'split' indicates an
585 * prealloc: [orig->start, split - 1]
592 struct extent_state *prealloc, u64 split) in split_state()
599 prealloc->start = orig->start; in split_state()
600 prealloc->end = split - 1; in split_state()
601 prealloc->state = orig->state; in split_state()
604 node = tree_insert(&tree->state, &orig->rb_node, prealloc->end, in split_state()
605 &prealloc->rb_node, NULL, NULL); in split_state()
607 free_extent_state(prealloc); in split_state()
669 alloc_extent_state_atomic(struct extent_state *prealloc) in alloc_extent_state_atomic() argument
591 split_state(struct extent_io_tree *tree, struct extent_state *orig, struct extent_state *prealloc, u64 split) split_state() argument
702 struct extent_state *prealloc = NULL; __clear_extent_bit() local
970 struct extent_state *prealloc = NULL; __set_extent_bit() local
1212 struct extent_state *prealloc = NULL; convert_extent_bit() local
[all...]
H A Dextent_map.c301 bool prealloc = false; in unpin_extent_cache() local
317 prealloc = true; in unpin_extent_cache()
323 if (prealloc) { in unpin_extent_cache()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dioam6.sh220 trace prealloc type 0x800000 ns 0 size 4 dev veth0
494 trace prealloc type 0x800000 ns 0 size 4 dev veth0
514 trace prealloc type 0xc00000 ns 123 size 4 dev veth0
540 trace prealloc type ${bit2type[$i]} ns 123 size ${bit2size[$i]} \
579 trace prealloc type 0xfff002 ns 123 size 100 dev veth0
609 trace prealloc type 0x800000 ns 0 size 4 dev veth0
629 trace prealloc type 0xc00000 ns 123 size 4 dev veth0
655 trace prealloc type ${bit2type[$i]} ns 123 size ${bit2size[$i]} \
684 trace prealloc type 0xc00000 ns 123 size 4 dev veth0
708 trace prealloc typ
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/
H A Dsetup.c112 static void __init prealloc(struct ps3_prealloc *p) in prealloc() function
134 #define prealloc_ps3fb_videomemory() prealloc(&ps3fb_videomemory)
157 #define prealloc_ps3flash_bounce_buffer() prealloc(&ps3flash_bounce_buffer)
/kernel/linux/linux-5.10/net/sched/
H A Dsch_gred.c477 struct gred_sched_data **prealloc, in gred_change_vq()
489 table->tab[dp] = q = *prealloc; in gred_change_vq()
490 *prealloc = NULL; in gred_change_vq()
644 struct gred_sched_data *prealloc; in gred_change() local
699 prealloc = kzalloc(sizeof(*prealloc), GFP_KERNEL); in gred_change()
702 err = gred_change_vq(sch, ctl->DP, ctl, prio, stab, max_P, &prealloc, in gred_change()
717 kfree(prealloc); in gred_change()
724 kfree(prealloc); in gred_change()
474 gred_change_vq(struct Qdisc *sch, int dp, struct tc_gred_qopt *ctl, int prio, u8 *stab, u32 max_P, struct gred_sched_data **prealloc, struct netlink_ext_ack *extack) gred_change_vq() argument
/kernel/linux/linux-6.6/arch/powerpc/platforms/ps3/
H A Dsetup.c113 static void __init prealloc(struct ps3_prealloc *p) in prealloc() function
135 #define prealloc_ps3fb_videomemory() prealloc(&ps3fb_videomemory)
158 #define prealloc_ps3flash_bounce_buffer() prealloc(&ps3flash_bounce_buffer)
/kernel/linux/linux-5.10/fs/ext4/
H A Dextents_status.c148 struct extent_status *prealloc);
151 struct extent_status *prealloc);
157 struct pending_reservation **prealloc);
791 struct extent_status *prealloc) in __es_insert_extent()
831 if (prealloc) in __es_insert_extent()
832 es = prealloc; in __es_insert_extent()
1366 * @prealloc - pre-allocated es to avoid memory allocation failures
1375 struct extent_status *prealloc) in __es_remove_extent()
1422 err = __es_insert_extent(inode, &newes, prealloc); in __es_remove_extent()
1944 * @prealloc
790 __es_insert_extent(struct inode *inode, struct extent_status *newes, struct extent_status *prealloc) __es_insert_extent() argument
1373 __es_remove_extent(struct inode *inode, ext4_lblk_t lblk, ext4_lblk_t end, int *reserved, struct extent_status *prealloc) __es_remove_extent() argument
1949 __insert_pending(struct inode *inode, ext4_lblk_t lblk, struct pending_reservation **prealloc) __insert_pending() argument
2245 __revise_pending(struct inode *inode, ext4_lblk_t lblk, ext4_lblk_t len, struct pending_reservation **prealloc) __revise_pending() argument
[all...]
/kernel/linux/linux-6.6/fs/ext4/
H A Dextents_status.c148 struct extent_status *prealloc);
151 struct extent_status *prealloc);
157 struct pending_reservation **prealloc);
786 struct extent_status *prealloc) in __es_insert_extent()
826 if (prealloc) in __es_insert_extent()
827 es = prealloc; in __es_insert_extent()
1359 * @prealloc - pre-allocated es to avoid memory allocation failures
1368 struct extent_status *prealloc) in __es_remove_extent()
1415 err = __es_insert_extent(inode, &newes, prealloc); in __es_remove_extent()
1936 * @prealloc
785 __es_insert_extent(struct inode *inode, struct extent_status *newes, struct extent_status *prealloc) __es_insert_extent() argument
1366 __es_remove_extent(struct inode *inode, ext4_lblk_t lblk, ext4_lblk_t end, int *reserved, struct extent_status *prealloc) __es_remove_extent() argument
1941 __insert_pending(struct inode *inode, ext4_lblk_t lblk, struct pending_reservation **prealloc) __insert_pending() argument
2235 __revise_pending(struct inode *inode, ext4_lblk_t lblk, ext4_lblk_t len, struct pending_reservation **prealloc) __revise_pending() argument
[all...]
/kernel/linux/linux-6.6/net/sched/
H A Dsch_gred.c484 struct gred_sched_data **prealloc, in gred_change_vq()
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()
481 gred_change_vq(struct Qdisc *sch, int dp, struct tc_gred_qopt *ctl, int prio, u8 *stab, u32 max_P, struct gred_sched_data **prealloc, struct netlink_ext_ack *extack) gred_change_vq() argument
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
H A Dvsp1_dl.h56 unsigned int prealloc);
H A Dvsp1_dl.c1091 unsigned int prealloc) in vsp1_dlm_create()
1112 * memory. An extra body is allocated on top of the prealloc to account in vsp1_dlm_create()
1121 dlm->pool = vsp1_dl_body_pool_create(vsp1, prealloc + 1, in vsp1_dlm_create()
1126 for (i = 0; i < prealloc; ++i) { in vsp1_dlm_create()
1145 VSP1_EXTCMD_AUTOFLD, prealloc); in vsp1_dlm_create()
1089 vsp1_dlm_create(struct vsp1_device *vsp1, unsigned int index, unsigned int prealloc) vsp1_dlm_create() argument
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/
H A Dvsp1_dl.h56 unsigned int prealloc);
H A Dvsp1_dl.c1091 unsigned int prealloc) in vsp1_dlm_create()
1112 * memory. An extra body is allocated on top of the prealloc to account in vsp1_dlm_create()
1121 dlm->pool = vsp1_dl_body_pool_create(vsp1, prealloc + 1, in vsp1_dlm_create()
1126 for (i = 0; i < prealloc; ++i) { in vsp1_dlm_create()
1145 VSP1_EXTCMD_AUTOFLD, prealloc); in vsp1_dlm_create()
1089 vsp1_dlm_create(struct vsp1_device *vsp1, unsigned int index, unsigned int prealloc) vsp1_dlm_create() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Di915_active.c298 struct active_node *node, *prealloc; in active_instance() local
306 prealloc = kmem_cache_alloc(global.slab_cache, GFP_KERNEL); in active_instance()
307 if (!prealloc) in active_instance()
320 kmem_cache_free(global.slab_cache, prealloc); in active_instance()
330 node = prealloc; in active_instance()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
H A Dintel_fbdev.c179 bool prealloc = false; in intelfb_create() local
203 prealloc = true; in intelfb_create()
259 if (vma->obj->stolen && !prealloc) in intelfb_create()
/kernel/linux/linux-5.10/drivers/md/
H A Ddm-cache-target.c1461 struct dm_bio_prison_cell_v2 *prealloc; in mg_lock_writes() local
1463 prealloc = alloc_prison_cell(cache); in mg_lock_writes()
1473 prealloc, &mg->cell); in mg_lock_writes()
1475 free_prison_cell(cache, prealloc); in mg_lock_writes()
1480 if (mg->cell != prealloc) in mg_lock_writes()
1481 free_prison_cell(cache, prealloc); in mg_lock_writes()
1586 struct dm_bio_prison_cell_v2 *prealloc; in invalidate_lock() local
1588 prealloc = alloc_prison_cell(cache); in invalidate_lock()
1592 READ_WRITE_LOCK_LEVEL, prealloc, &mg->cell); in invalidate_lock()
1594 free_prison_cell(cache, prealloc); in invalidate_lock()
[all...]
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-cache-target.c1398 struct dm_bio_prison_cell_v2 *prealloc; in mg_lock_writes() local
1400 prealloc = alloc_prison_cell(cache); in mg_lock_writes()
1410 prealloc, &mg->cell); in mg_lock_writes()
1412 free_prison_cell(cache, prealloc); in mg_lock_writes()
1417 if (mg->cell != prealloc) in mg_lock_writes()
1418 free_prison_cell(cache, prealloc); in mg_lock_writes()
1528 struct dm_bio_prison_cell_v2 *prealloc; in invalidate_lock() local
1530 prealloc = alloc_prison_cell(cache); in invalidate_lock()
1534 READ_WRITE_LOCK_LEVEL, prealloc, &mg->cell); in invalidate_lock()
1536 free_prison_cell(cache, prealloc); in invalidate_lock()
[all...]
/kernel/linux/linux-5.10/fs/sysfs/
H A Dfile.c213 .prealloc = true,
218 .prealloc = true,
224 .prealloc = true,
/kernel/linux/linux-6.6/fs/sysfs/
H A Dfile.c220 .prealloc = true,
225 .prealloc = true,
231 .prealloc = true,
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
H A Dintel_fbdev.c224 bool prealloc = false; in intelfb_create() local
256 prealloc = true; in intelfb_create()
328 if (!i915_gem_object_is_shmem(vma->obj) && !prealloc) in intelfb_create()
/kernel/linux/linux-5.10/kernel/bpf/
H A Dhashtab.c354 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc_check() local
380 if (lru && !prealloc) in htab_map_alloc_check()
423 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc() local
494 if (prealloc) { in htab_map_alloc()
831 /* When using prealloc and not setting the initial value on all cpus, in pcpu_init_value()
833 * not using prealloc). Otherwise, bpf program has no way to ensure in pcpu_init_value()
866 bool prealloc = htab_is_prealloc(htab); in alloc_htab_elem() local
870 if (prealloc) { in alloc_htab_elem()
911 if (prealloc) { in alloc_htab_elem()
926 if (!prealloc) in alloc_htab_elem()
[all...]

Completed in 37 milliseconds

12