Home
last modified time | relevance | path

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

12

/linux-6.12.1/fs/btrfs/
Dextent-io-tree.c183 static struct extent_state *alloc_extent_state_atomic(struct extent_state *prealloc) in alloc_extent_state_atomic() argument
185 if (!prealloc) in alloc_extent_state_atomic()
186 prealloc = alloc_extent_state(GFP_ATOMIC); in alloc_extent_state_atomic()
188 return prealloc; in alloc_extent_state_atomic()
525 struct extent_state *prealloc, u64 split) in split_state() argument
534 prealloc->start = orig->start; in split_state()
535 prealloc->end = split - 1; in split_state()
536 prealloc->state = orig->state; in split_state()
547 if (prealloc->end < entry->start) { in split_state()
549 } else if (prealloc->end > entry->end) { in split_state()
[all …]
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()
219 if (ulist->prealloc) { in ulist_add_merge()
220 node = ulist->prealloc; in ulist_add_merge()
221 ulist->prealloc = NULL; in ulist_add_merge()
Dqgroup.c191 struct btrfs_qgroup *prealloc, in add_qgroup_rb() argument
199 ASSERT(prealloc); in add_qgroup_rb()
210 kfree(prealloc); in add_qgroup_rb()
215 qgroup = prealloc; in add_qgroup_rb()
275 static int __add_relation_rb(struct btrfs_qgroup_list *prealloc, in __add_relation_rb() argument
280 kfree(prealloc); in __add_relation_rb()
284 prealloc->group = parent; in __add_relation_rb()
285 prealloc->member = member; in __add_relation_rb()
286 list_add_tail(&prealloc->next_group, &member->groups); in __add_relation_rb()
287 list_add_tail(&prealloc->next_member, &parent->members); in __add_relation_rb()
[all …]
Dulist.h44 struct ulist_node *prealloc; member
Dextent_io.c828 struct btrfs_subpage *prealloc) in attach_extent_buffer_folio() argument
852 btrfs_free_subpage(prealloc); in attach_extent_buffer_folio()
856 if (prealloc) in attach_extent_buffer_folio()
858 folio_attach_private(folio, prealloc); in attach_extent_buffer_folio()
2851 struct btrfs_subpage *prealloc, in attach_eb_folio_to_filemap() argument
2914 ret = attach_extent_buffer_folio(eb, eb->folios[i], prealloc); in attach_eb_folio_to_filemap()
2938 struct btrfs_subpage *prealloc = NULL; in alloc_extent_buffer() local
2983 prealloc = btrfs_alloc_subpage(fs_info, BTRFS_SUBPAGE_METADATA); in alloc_extent_buffer()
2984 if (IS_ERR(prealloc)) { in alloc_extent_buffer()
2985 ret = PTR_ERR(prealloc); in alloc_extent_buffer()
[all …]
Dqgroup.h334 struct btrfs_qgroup_list *prealloc);
/linux-6.12.1/lib/
Dstackdepot.c244 static bool depot_init_pool(void **prealloc) in depot_init_pool() argument
256 if (!new_pool && *prealloc) { in depot_init_pool()
258 WRITE_ONCE(new_pool, *prealloc); in depot_init_pool()
259 *prealloc = NULL; in depot_init_pool()
291 static void depot_keep_new_pool(void **prealloc) in depot_keep_new_pool() argument
302 WRITE_ONCE(new_pool, *prealloc); in depot_keep_new_pool()
303 *prealloc = NULL; in depot_keep_new_pool()
310 static struct stack_record *depot_pop_free_pool(void **prealloc, size_t size) in depot_pop_free_pool() argument
319 if (!depot_init_pool(prealloc)) in depot_pop_free_pool()
381 …ck(unsigned long *entries, unsigned int nr_entries, u32 hash, depot_flags_t flags, void **prealloc) in depot_alloc_stack() argument
[all …]
/linux-6.12.1/tools/testing/selftests/net/
Dioam6.sh219 trace prealloc type 0x800000 ns 0 size 4 dev veth0
487 trace prealloc type 0x800000 ns 0 size 4 dev veth0
507 trace prealloc type 0xc00000 ns 123 size 4 dev veth0
533 trace prealloc type ${bit2type[$i]} ns 123 size ${bit2size[$i]} \
572 trace prealloc type 0xfff002 ns 123 size 100 dev veth0
602 trace prealloc type 0x800000 ns 0 size 4 dev veth0
622 trace prealloc type 0xc00000 ns 123 size 4 dev veth0
648 trace prealloc type ${bit2type[$i]} ns 123 size ${bit2size[$i]} \
677 trace prealloc type 0xc00000 ns 123 size 4 dev veth0
701 trace prealloc type 0xfff002 ns 123 size 80 dev veth0
[all …]
/linux-6.12.1/arch/powerpc/platforms/ps3/
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)
/linux-6.12.1/fs/ext4/
Dextents_status.c148 struct extent_status *prealloc);
151 struct extent_status *prealloc);
157 struct pending_reservation **prealloc);
788 struct extent_status *prealloc) in __es_insert_extent() argument
828 if (prealloc) in __es_insert_extent()
829 es = prealloc; in __es_insert_extent()
1384 struct extent_status *prealloc) in __es_remove_extent() argument
1431 err = __es_insert_extent(inode, &newes, prealloc); in __es_remove_extent()
1961 struct pending_reservation **prealloc) in __insert_pending() argument
1987 if (likely(*prealloc == NULL)) { in __insert_pending()
[all …]
/linux-6.12.1/net/sched/
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-6.12.1/arch/arc/lib/
Dmemset-archs.S21 prealloc [\reg, \off]
/linux-6.12.1/drivers/media/platform/renesas/vsp1/
Dvsp1_dl.h56 unsigned int prealloc);
Dvsp1_dl.c1091 unsigned int prealloc) in vsp1_dlm_create() argument
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()
/linux-6.12.1/drivers/md/
Ddm-cache-target.c1397 struct dm_bio_prison_cell_v2 *prealloc; in mg_lock_writes() local
1399 prealloc = alloc_prison_cell(cache); in mg_lock_writes()
1409 prealloc, &mg->cell); in mg_lock_writes()
1411 free_prison_cell(cache, prealloc); in mg_lock_writes()
1416 if (mg->cell != prealloc) in mg_lock_writes()
1417 free_prison_cell(cache, prealloc); in mg_lock_writes()
1527 struct dm_bio_prison_cell_v2 *prealloc; in invalidate_lock() local
1529 prealloc = alloc_prison_cell(cache); in invalidate_lock()
1533 READ_WRITE_LOCK_LEVEL, prealloc, &mg->cell); in invalidate_lock()
1535 free_prison_cell(cache, prealloc); in invalidate_lock()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/display/
Dintel_fbdev.c189 bool prealloc = false; in intelfb_create() local
220 prealloc = true; in intelfb_create()
262 if (!i915_gem_object_is_shmem(obj) && !prealloc) in intelfb_create()
/linux-6.12.1/fs/sysfs/
Dfile.c232 .prealloc = true,
237 .prealloc = true,
243 .prealloc = true,
/linux-6.12.1/kernel/bpf/
Dhashtab.c426 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc_check() local
444 if (lru && !prealloc) in htab_map_alloc_check()
484 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc() local
578 if (prealloc) { in htab_map_alloc()
1010 bool prealloc = htab_is_prealloc(htab); in alloc_htab_elem() local
1014 if (prealloc) { in alloc_htab_elem()
1051 if (prealloc) { in alloc_htab_elem()
1068 if (!prealloc) in alloc_htab_elem()
2234 bool prealloc = htab_is_prealloc(htab); in htab_map_mem_usage() local
2242 if (prealloc) { in htab_map_mem_usage()
/linux-6.12.1/sound/hda/
DKconfig37 via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
/linux-6.12.1/fs/xfs/
Dxfs_dquot.c99 int prealloc = 0; in xfs_qm_adjust_dqlimits() local
106 prealloc = 1; in xfs_qm_adjust_dqlimits()
110 prealloc = 1; in xfs_qm_adjust_dqlimits()
121 if (prealloc) in xfs_qm_adjust_dqlimits()
/linux-6.12.1/mm/
Dmemory.c916 struct folio **prealloc, struct page *page) in copy_present_page() argument
921 new_folio = *prealloc; in copy_present_page()
933 *prealloc = NULL; in copy_present_page()
982 int max_nr, int *rss, struct folio **prealloc) in copy_present_ptes() argument
1001 if (unlikely(!*prealloc && folio_test_large(folio) && max_nr != 1)) { in copy_present_ptes()
1041 addr, rss, prealloc, page); in copy_present_ptes()
1093 struct folio *prealloc = NULL; in copy_pte_range() local
1168 ptent, addr, max_nr, rss, &prealloc); in copy_pte_range()
1176 if (unlikely(prealloc)) { in copy_pte_range()
1183 folio_put(prealloc); in copy_pte_range()
[all …]
/linux-6.12.1/drivers/usb/gadget/function/
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-6.12.1/fs/xfs/libxfs/
Dxfs_bmap.h223 xfs_fileoff_t off, xfs_filblks_t len, xfs_filblks_t prealloc,
/linux-6.12.1/Documentation/filesystems/
Dntfs3.rst102 * - prealloc
/linux-6.12.1/fs/kernfs/
Dfile.c669 if (ops->prealloc && ops->seq_show) in kernfs_fop_open()
671 if (ops->prealloc) { in kernfs_fop_open()

12