/linux/fs/ubifs/ |
H A D | shrinker.c | 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() 149 int freed = 0; in shrink_tnc_trees() local 187 freed += shrink_tnc(c, nr, age, contention); in shrink_tnc_trees() 198 if (freed >= nr) in shrink_tnc_trees() 202 return freed; in shrink_tnc_trees() 284 unsigned long freed; in ubifs_shrink_scan() local [all …]
|
/linux/drivers/staging/octeon/ |
H A D | ethernet-mem.c | 26 int freed = elements; in cvm_oct_fill_hw_skbuff() local 28 while (freed) { in cvm_oct_fill_hw_skbuff() 36 freed--; in cvm_oct_fill_hw_skbuff() 38 return elements - freed; in cvm_oct_fill_hw_skbuff() 81 int freed = elements; in cvm_oct_fill_hw_memory() local 83 while (freed) { in cvm_oct_fill_hw_memory() 103 freed--; in cvm_oct_fill_hw_memory() 105 return elements - freed; in cvm_oct_fill_hw_memory() 139 int freed; in cvm_oct_mem_fill_fpa() local 142 freed = cvm_oct_fill_hw_skbuff(pool, size, elements); in cvm_oct_mem_fill_fpa() [all …]
|
/linux/fs/f2fs/ |
H A D | shrinker.c | 86 unsigned long freed = 0; in f2fs_shrink_scan() local 109 freed += f2fs_shrink_age_extent_tree(sbi, nr >> 2); in f2fs_shrink_scan() 112 freed += f2fs_shrink_read_extent_tree(sbi, nr >> 2); in f2fs_shrink_scan() 115 if (freed < nr) in f2fs_shrink_scan() 116 freed += f2fs_try_to_free_nats(sbi, nr - freed); in f2fs_shrink_scan() 119 if (freed < nr) in f2fs_shrink_scan() 120 freed += f2fs_try_to_free_nids(sbi, nr - freed); in f2fs_shrink_scan() 126 if (freed >= nr) in f2fs_shrink_scan() 130 return freed; in f2fs_shrink_scan()
|
/linux/drivers/gpu/drm/msm/ |
H A D | msm_gem_shrinker.c | 107 unsigned long freed; in msm_gem_shrinker_scan() member 117 unsigned long freed = 0; in msm_gem_shrinker_scan() local 123 stages[i].freed = in msm_gem_shrinker_scan() 127 nr -= stages[i].freed; in msm_gem_shrinker_scan() 128 freed += stages[i].freed; in msm_gem_shrinker_scan() 132 if (freed) { in msm_gem_shrinker_scan() 133 trace_msm_gem_shrink(sc->nr_to_scan, stages[0].freed, in msm_gem_shrinker_scan() 134 stages[1].freed, stages[2].freed, in msm_gem_shrinker_scan() 135 stages[3].freed); in msm_gem_shrinker_scan() 138 return (freed > 0 && remaining > 0) ? freed : SHRINK_STOP; in msm_gem_shrinker_scan()
|
/linux/drivers/gpu/drm/panfrost/ |
H A D | panfrost_gem_shrinker.c | 69 unsigned long freed = 0; in panfrost_gem_shrinker_scan() local 75 if (freed >= sc->nr_to_scan) in panfrost_gem_shrinker_scan() 79 freed += shmem->base.size >> PAGE_SHIFT; in panfrost_gem_shrinker_scan() 86 if (freed > 0) in panfrost_gem_shrinker_scan() 87 pr_info_ratelimited("Purging %lu bytes\n", freed << PAGE_SHIFT); in panfrost_gem_shrinker_scan() 89 return freed; in panfrost_gem_shrinker_scan()
|
/linux/mm/ |
H A D | shrinker.c | 374 unsigned long freed = 0; in do_shrink_slab() local 440 freed += ret; in do_shrink_slab() 464 trace_mm_shrink_slab_end(shrinker, shrinkctl->nid, freed, nr, new_nr, total_scan); in do_shrink_slab() 465 return freed; in do_shrink_slab() 473 unsigned long ret, freed = 0; in shrink_slab_memcg() local 575 freed += ret; in shrink_slab_memcg() 584 return freed; in shrink_slab_memcg() 617 unsigned long ret, freed = 0; in shrink_slab() local 667 freed += ret; in shrink_slab() 675 return freed; in shrink_slab()
|
/linux/sound/soc/intel/atom/sst/ |
H A D | sst_ipc.c | 92 int sst_free_block(struct intel_sst_drv *ctx, struct sst_block *freed) in sst_free_block() argument 99 if (block == freed) { in sst_free_block() 100 pr_debug("pvt_id freed --> %d\n", freed->drv_id); in sst_free_block() 102 list_del(&freed->node); in sst_free_block() 104 kfree(freed->data); in sst_free_block() 105 freed->data = NULL; in sst_free_block() 106 kfree(freed); in sst_free_block()
|
/linux/fs/nfsd/ |
H A D | nfscache.c | 124 unsigned long freed = 0; in nfsd_cacherep_dispose() local 130 freed++; in nfsd_cacherep_dispose() 132 return freed; in nfsd_cacherep_dispose() 269 unsigned int freed = 0; in nfsd_prune_bucket_locked() local 289 if (max && ++freed > max) in nfsd_prune_bucket_locked() 327 unsigned long freed = 0; in nfsd_reply_cache_scan() local 341 freed += nfsd_cacherep_dispose(&dispose); in nfsd_reply_cache_scan() 342 if (freed > sc->nr_to_scan) in nfsd_reply_cache_scan() 345 return freed; in nfsd_reply_cache_scan()
|
/linux/net/sctp/ |
H A D | ulpqueue.c | 961 __u16 freed = 0; in sctp_ulpq_renege_list() local 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() 1082 freed += sctp_ulpq_renege_frags(ulpq, needed - freed); in sctp_ulpq_renege() [all …]
|
/linux/fs/erofs/ |
H A D | zutil.c | 257 unsigned long freed = 0; in erofs_shrink_scan() local 283 freed += z_erofs_shrink_scan(sbi, nr - freed); in erofs_shrink_scan() 295 if (freed >= nr) in erofs_shrink_scan() 299 return freed; in erofs_shrink_scan()
|
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_object.c | 407 struct llist_node *freed) in __i915_gem_free_objects() argument 411 llist_for_each_entry_safe(obj, on, freed, freed) { in __i915_gem_free_objects() 429 struct llist_node *freed = llist_del_all(&i915->mm.free_list); in i915_gem_flush_free_objects() local 431 if (unlikely(freed)) in i915_gem_flush_free_objects() 432 __i915_gem_free_objects(i915, freed); in i915_gem_flush_free_objects() 471 if (llist_add(&obj->freed, &i915->mm.free_list)) in i915_gem_free_object()
|
/linux/net/sunrpc/ |
H A D | auth.c | 431 long freed = 0; in rpcauth_prune_expired() local 451 freed++; in rpcauth_prune_expired() 454 return freed ? freed : SHRINK_STOP; in rpcauth_prune_expired() 461 unsigned long freed; in rpcauth_cache_do_shrink() local 464 freed = rpcauth_prune_expired(&free, nr_to_scan); in rpcauth_cache_do_shrink() 468 return freed; in rpcauth_cache_do_shrink()
|
/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; 353 __entry->block_nr, __entry->freed)
|
/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/drivers/firmware/arm_scmi/ |
H A D | notify.c | 1253 bool freed = false; in scmi_put_handler_unlocked() local 1259 freed = true; in scmi_put_handler_unlocked() 1262 return freed; in scmi_put_handler_unlocked() 1268 bool freed; in scmi_put_handler() local 1278 freed = scmi_put_handler_unlocked(ni, hndl); in scmi_put_handler() 1288 if (freed) in scmi_put_handler() 1297 bool freed; in scmi_put_active_handler() local 1302 freed = scmi_put_handler_unlocked(ni, hndl); in scmi_put_active_handler() 1304 if (freed) in scmi_put_active_handler()
|
/linux/net/rds/ |
H A D | ib_frmr.c | 363 unsigned int freed = *nfreed; in rds_ib_unreg_frmr() local 382 if (freed < goal || frmr->fr_state == FRMR_IS_STALE) { in rds_ib_unreg_frmr() 395 freed++; in rds_ib_unreg_frmr() 398 *nfreed = freed; in rds_ib_unreg_frmr()
|
/linux/Documentation/sound/designs/ |
H A D | jack-controls.rst | 30 Those kcontrols will be freed automatically when the Jack is freed.
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | tx.c | 1121 int freed; in iwlagn_rx_reply_tx() local 1175 freed = 0; in iwlagn_rx_reply_tx() 1222 freed++; in iwlagn_rx_reply_tx() 1232 if (!is_agg && freed != 1) in iwlagn_rx_reply_tx() 1233 IWL_ERR(priv, "Q: %d, freed %d\n", txq_id, freed); in iwlagn_rx_reply_tx() 1271 int freed; in iwlagn_rx_reply_compressed_ba() local 1351 freed = 0; in iwlagn_rx_reply_compressed_ba() 1358 freed++; in iwlagn_rx_reply_compressed_ba() 1371 if (freed == 1) { in iwlagn_rx_reply_compressed_ba()
|
/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/drivers/tty/ |
H A D | tty_buffer.c | 125 unsigned int freed = 0; in tty_buffer_free_all() local 130 freed += p->size; in tty_buffer_free_all() 143 WARN(still_used != freed, "we still have not freed %d bytes!", in tty_buffer_free_all() 144 still_used - freed); in tty_buffer_free_all()
|
/linux/fs/jbd2/ |
H A D | checkpoint.c | 415 unsigned long freed; in jbd2_journal_shrink_checkpoint_list() local 448 freed = journal_shrink_one_cp_list(transaction->t_checkpoint_list, in jbd2_journal_shrink_checkpoint_list() 450 nr_freed += freed; in jbd2_journal_shrink_checkpoint_list() 451 (*nr_to_scan) -= min(*nr_to_scan, freed); in jbd2_journal_shrink_checkpoint_list()
|
/linux/drivers/char/agp/ |
H A D | efficeon-agp.c | 160 int index, freed = 0; in efficeon_free_gatt_table() local 167 freed++; in efficeon_free_gatt_table() 174 printk(KERN_DEBUG PFX "efficeon_free_gatt_table() freed %d pages\n", freed); in efficeon_free_gatt_table()
|
/linux/sound/pci/hda/ |
H A D | hda_intel.h | 31 unsigned int freed:1; /* resources already released */ member
|
/linux/Documentation/mm/ |
H A D | hugetlbfs_reserv.rst | 76 reservation must be restored when the huge page is freed. More 225 * freed, the reservation will be restored. */ 237 for subpool accounting when the folio is freed. 267 when a huge page that has been instantiated is freed no adjustment is made 274 Huge pages are freed by free_huge_folio(). It is only passed a pointer 276 is freed, reservation accounting may need to be performed. This would 278 reserves, or the page is being freed on an error path where a global 419 be released and the reservation map freed. Before freeing the reservation 420 map, all the individual file_region structures must be freed. In this case 423 after the new file size must be freed. In addition, any file_region entries [all …]
|
/linux/fs/bcachefs/ |
H A D | btree_key_cache_types.h | 23 unsigned long freed; member
|