| /linux/fs/ubifs/ |
| H A D | shrinker.c | 56 * clean znodes which younger then @age. Returns number of freed znodes. 83 int freed; in shrink_tnc() local 116 freed = ubifs_destroy_tnc_subtree(c, znode); in shrink_tnc() 117 atomic_long_sub(freed, &ubifs_clean_zn_cnt); in shrink_tnc() 118 atomic_long_sub(freed, &c->clean_zn_cnt); in shrink_tnc() 119 total_freed += freed; in shrink_tnc() 141 * znodes which are older than @age, until at least @nr znodes are freed. 142 * Returns the number of freed znodes. 149 int freed = 0; in shrink_tnc_trees() local 187 freed += shrink_tnc(c, nr, age, contention); in shrink_tnc_trees() [all …]
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_gem_shrinker.c | 72 * Hold a ref to prevent the vm_bo from being freed in with_vm_locks() 161 unsigned long freed; in msm_gem_shrinker_scan() member 171 unsigned long freed = 0; in msm_gem_shrinker_scan() local 180 stages[i].freed = in msm_gem_shrinker_scan() 185 nr -= stages[i].freed; in msm_gem_shrinker_scan() 186 freed += stages[i].freed; in msm_gem_shrinker_scan() 190 if (freed) { in msm_gem_shrinker_scan() 191 trace_msm_gem_shrink(sc->nr_to_scan, stages[0].freed, in msm_gem_shrinker_scan() 192 stages[1].freed, stages[2].freed, in msm_gem_shrinker_scan() 193 stages[3].freed); in msm_gem_shrinker_scan() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_shrinker.c | 63 s64 freed = 0, lret; in __xe_shrinker_walk() local 85 freed += lret; in __xe_shrinker_walk() 93 return freed; in __xe_shrinker_walk() 109 s64 lret, freed; in xe_shrinker_walk() local 118 freed = lret; in xe_shrinker_walk() 123 freed += lret; in xe_shrinker_walk() 125 return freed; in xe_shrinker_walk() 132 freed += lret; in xe_shrinker_walk() 135 return freed; in xe_shrinker_walk() 208 unsigned long nr_to_scan, nr_scanned = 0, freed = 0; in xe_shrinker_scan() local [all …]
|
| /linux/mm/ |
| H A D | shrinker.c | 379 unsigned long freed = 0; in do_shrink_slab() local 446 freed += ret; in do_shrink_slab() 470 trace_mm_shrink_slab_end(shrinker, shrinkctl->nid, freed, nr, new_nr, total_scan, in do_shrink_slab() 472 return freed; in do_shrink_slab() 480 unsigned long ret, freed = 0; in shrink_slab_memcg() local 489 * The shrinker_info may be freed asynchronously via RCU in the in shrink_slab_memcg() 493 * The shrinker_info_unit is never freed unless its corresponding memcg in shrink_slab_memcg() 496 * not be freed. in shrink_slab_memcg() 585 freed += ret; in shrink_slab_memcg() 594 return freed; in shrink_slab_memcg() [all …]
|
| /linux/sound/soc/intel/atom/sst/ |
| H A D | sst_ipc.c | 93 int sst_free_block(struct intel_sst_drv *ctx, struct sst_block *freed) in sst_free_block() 100 if (block == freed) { in sst_free_block() 101 pr_debug("pvt_id freed --> %d\n", freed->drv_id); in sst_free_block() 103 list_del(&freed->node); in sst_free_block() 105 kfree(freed->data); in sst_free_block() 106 freed->data = NULL; in sst_free_block() 107 kfree(freed); in sst_free_block() 112 dev_err(ctx->dev, "block is already freed!!!\n"); in sst_free_block() 92 sst_free_block(struct intel_sst_drv * ctx,struct sst_block * freed) sst_free_block() argument
|
| /linux/Documentation/trace/ |
| H A D | events-kmem.rst | 64 When a page is freed directly by the caller, the only mm_page_free event 68 When pages are freed in batch, the also mm_page_free_batched is triggered. 70 freed in batch with a page list. Significant amounts of activity here could 90 When the per-CPU list is too full, a number of pages are freed, each one 101 can be allocated and freed on the same CPU through some algorithm change.
|
| /linux/fs/xfs/ |
| H A D | xfs_attr_item.h | 33 * attached to the xfs_attr_intent until they are committed. They are freed 34 * when the xfs_attr_intent itself is freed when the work is done. 45 * earlier mentioned in an attri item have been freed.
|
| H A D | xfs_extfree_item.h | 24 * The EFI is reference counted so that it is not freed prior to both the EFI 46 * AIL, so at this point both the EFI and EFD are freed. 66 * have been freed.
|
| /linux/kernel/module/ |
| H A D | stats.c | 42 * from kernel_read_file_from_fd() is freed right away. 48 * counter will be incremented with the summation of the allocated bytes freed 50 * step b) a separate counter is used and incremented for the bytes freed and 79 * All virtual memory allocated to these failed modules will be freed with 120 * * invalid_kread_bytes: bytes allocated and then freed on failures which 124 * * invalid_decompress_bytes: number of bytes allocated and freed due to 128 * * invalid_becoming_bytes: total number of bytes allocated and freed used 150 * freed bytes in kernel_read_file_from_fd() calls for these type of 164 * freed due to failures after we did all the sanity checks of the module 171 * also freed an [all...] |
| /linux/Documentation/core-api/ |
| H A D | memory-allocation.rst | 176 When the allocated memory is no longer needed it must be freed. 178 Objects allocated by `kmalloc` can be freed by `kfree` or `kvfree`. Objects 179 allocated by `kmem_cache_alloc` can be freed with `kmem_cache_free`, `kfree` 185 Memory allocated by `vmalloc` can be freed with `vfree` or `kvfree`. 186 Memory allocated by `kvmalloc` can be freed with `kvfree`. 187 Caches created by `kmem_cache_create` should be freed with
|
| /linux/include/trace/events/ |
| H A D | jbd2.h | 330 unsigned long block_nr, unsigned long freed), 332 TP_ARGS(journal, first_tid, block_nr, freed), 339 __field(unsigned long, freed ) 347 __entry->freed = freed; 350 TP_printk("dev %d,%d from %u to %u offset %lu freed %lu", 353 __entry->block_nr, __entry->freed) 487 TP_printk("dev %d,%d shrink transaction %u-%u(%u) freed %lu "
|
| /linux/drivers/iommu/ |
| H A D | iommu-pages.c | 38 * Returns the virtual address of the allocated page. The page must be freed 105 * @virt: virtual address of the page to be freed. 119 * @list: The list of pages to be freed 236 * @virt: virtual address of the page to be freed. 239 * If the page is incoherent it made coherent again then freed.
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_mod_race.c | 63 * Now, if we inject an error in the blocked program, our module will be freed 65 * Later, when bpf program is freed, it will try to module_put already freed
|
| /linux/kernel/trace/ |
| H A D | rethook.c | 56 * @rh: the struct rethook to be freed. 60 * calling this function.) This function will set the @rh to be freed 61 * after all rethook_node are freed (not soon). And the caller must 101 * Note that @handler == NULL means this rethook is going to be freed. 140 * marked as freed, this will free the @node. 165 /* Check whether @rh is going to be freed. */ in rethook_try_get()
|
| /linux/drivers/comedi/ |
| H A D | comedi_buf.c | 402 * space freed is limited to the amount that was reserved. The freed space is 405 * If the samples in the freed space need to be "munged", do so here. The 406 * freed space becomes available for allocation by the reader. 408 * Return: The amount of space freed in bytes. 448 * which has been freed by the writer and "munged" to the sample data format 499 * reserved before it can be freed. 550 * amount of space freed is limited to the amount that was reserved. 552 * The freed space becomes available for allocation by the writer. 554 * Return: The amount of space freed in bytes.
|
| /linux/fs/nfsd/ |
| H A D | nfscache.c | 126 unsigned long freed = 0; in nfsd_cacherep_dispose() local 132 freed++; in nfsd_cacherep_dispose() 134 return freed; in nfsd_cacherep_dispose() 267 unsigned int freed = 0; in nfsd_prune_bucket_locked() local 280 if (max && ++freed >= max) in nfsd_prune_bucket_locked() 309 * nr_to_scan freed objects. Nothing will be released if the cache 318 unsigned long freed = 0; in nfsd_reply_cache_scan() local 332 freed += nfsd_cacherep_dispose(&dispose); in nfsd_reply_cache_scan() 333 if (freed > sc->nr_to_scan) in nfsd_reply_cache_scan() 336 return freed; in nfsd_reply_cache_scan()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-kernel-slab | 171 has been deactivated and contained free objects that were freed 204 slabs (not objects) are freed by rcu. 213 been freed in a full slab so that it had to added to its node's 233 The free_fastpath file shows how many objects have been freed 244 The free_frozen file shows how many objects have been freed to 256 been freed to a now-empty slab so that it had to be removed from 268 freed back to the page allocator. It can be written to clear 278 The free_slowpath file shows how many objects have been freed 440 are freed and the partial list is sorted so the slabs
|
| /linux/include/linux/ |
| H A D | kfence.h | 89 * objects "zombie allocations". Objects may then still be used or freed (which 162 * @addr: object to be freed 166 * Release a KFENCE object and mark it as freed. 172 * @addr: object to be freed 178 * Release a KFENCE object and mark it as freed. May be called on any object,
|
| H A D | clk.h | 421 * that were obtained will be freed before returning to the caller. 443 * that were obtained will be freed before returning to the caller. 478 * automatically be freed when the device is unbound. 513 * disabled, unprepared and freed when the device is unbound. 529 * disabled, unprepared and freed when the device is unbound. 548 * automatically be freed when the device is unbound. 565 * The clks will automatically be disabled and freed when the device 588 * The clock will automatically be freed when the device is unbound 609 * The clock will automatically be unprepared and freed when the device 629 * The clock will automatically be disabled, unprepared and freed [all …]
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | memtrace.c | 228 /* We have freed this chunk previously */ in memtrace_free_regions() 246 * Memory was freed successfully so clean up references to it in memtrace_free_regions() 247 * so on reentry we can tell that this chunk was freed. in memtrace_free_regions() 250 pr_info("Freed trace memory back on node %d\n", ent->nid); in memtrace_free_regions() 256 /* If all chunks of memory were freed successfully, reset globals */ in memtrace_free_regions()
|
| /linux/arch/mips/include/asm/ |
| H A D | dsemul.h | 67 * Return: True if a frame was freed, else false. 103 * for delay slot 'emulation' book-keeping is freed. This is to be called 104 * before @mm is freed in order to avoid memory leaks.
|
| /linux/fs/udf/ |
| H A D | balloc.c | 505 /* AED block freed by udf_delete_aext(), released after unlock */ in udf_table_prealloc_blocks() 506 struct kernel_lb_addr freed = { .partitionReferenceNum = 0xFFFF }; in udf_table_prealloc_blocks() local 546 udf_delete_aext(table, epos, &freed); in udf_table_prealloc_blocks() 557 if (freed.partitionReferenceNum != 0xFFFF) in udf_table_prealloc_blocks() 558 udf_free_blocks(sb, table, &freed, 0, 1); in udf_table_prealloc_blocks() 567 /* AED block freed by udf_delete_aext(), released after unlock */ in udf_table_new_block() 568 struct kernel_lb_addr freed = { .partitionReferenceNum = 0xFFFF }; in udf_table_new_block() local 652 udf_delete_aext(table, goal_epos, &freed); in udf_table_new_block() 658 if (freed.partitionReferenceNum != 0xFFFF) in udf_table_new_block() 659 udf_free_blocks(sb, table, &freed, 0, 1); in udf_table_new_block()
|
| /linux/net/sctp/ |
| H A D | ulpqueue.c | 961 __u16 freed = 0; in sctp_ulpq_renege_list() local 979 * freed space; find the last TSN. in sctp_ulpq_renege_list() 981 freed += skb_headlen(skb); in sctp_ulpq_renege_list() 985 freed += skb_headlen(last); in sctp_ulpq_renege_list() 999 if (freed >= needed) in sctp_ulpq_renege_list() 1000 return freed; in sctp_ulpq_renege_list() 1003 return freed; in sctp_ulpq_renege_list() 1073 __u32 freed = 0; in sctp_ulpq_renege() local 1080 freed = sctp_ulpq_renege_order(ulpq, needed); in sctp_ulpq_renege() 1081 if (freed < needed) in sctp_ulpq_renege() [all …]
|
| /linux/drivers/net/wireless/ti/wlcore/ |
| H A D | wlcore_i.h | 64 /* Defined by FW as 0. Will not be freed or allocated. */ 149 * Cumulative counter of freed packets per HLID 262 /* accounting for allocated / freed packets in FW */ 282 * total freed FW packets on the link - used for tracking the 335 * total freed FW packets on the link to the STA - used for tracking the 487 * total freed FW packets on the link.
|
| /linux/tools/testing/selftests/bpf/libarena/selftests/ |
| H A D | test_asan_buddy.bpf.c | 57 __weak int asan_test_buddy_byte(u8 __arena *mem, int i, bool freed) in asan_test_buddy_byte() argument 61 /* The header in freed blocks doesn't get poisoned. */ in asan_test_buddy_byte() 62 if (freed && BUDDY_HEADER_OFF <= i && in asan_test_buddy_byte() 67 ret = asan_validate_addr(freed, &mem[i]); in asan_test_buddy_byte()
|