Home
last modified time | relevance | path

Searched refs:freed (Results 1 – 25 of 28) sorted by relevance

12

/fs/ubifs/
Dshrinker.c83 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 …]
/fs/f2fs/
Dshrinker.c82 unsigned long freed = 0; in f2fs_shrink_scan() local
105 freed += f2fs_shrink_extent_tree(sbi, nr >> 1); in f2fs_shrink_scan()
108 if (freed < nr) in f2fs_shrink_scan()
109 freed += f2fs_try_to_free_nats(sbi, nr - freed); in f2fs_shrink_scan()
112 if (freed < nr) in f2fs_shrink_scan()
113 freed += f2fs_try_to_free_nids(sbi, nr - freed); in f2fs_shrink_scan()
119 if (freed >= nr) in f2fs_shrink_scan()
123 return freed; in f2fs_shrink_scan()
Dsegment.h574 int freed, int needed) in has_not_enough_free_secs() argument
583 if (free_sections(sbi) + freed == reserved_sections(sbi) + needed && in has_not_enough_free_secs()
586 return (free_sections(sbi) + freed) <= in has_not_enough_free_secs()
Dnode.c902 int freed = 0; in truncate_nodes() local
920 for (i = ofs; i < NIDS_PER_BLOCK; i++, freed++) { in truncate_nodes()
949 freed = child_nofs; in truncate_nodes()
958 freed++; in truncate_nodes()
962 trace_f2fs_truncate_nodes_exit(dn->inode, freed); in truncate_nodes()
963 return freed; in truncate_nodes()
Dgc.c1203 goto freed; in do_garbage_collect()
1235 freed: in do_garbage_collect()
/fs/erofs/
Dutils.c196 unsigned int freed = 0; in erofs_shrink_workstation() local
214 ++freed; in erofs_shrink_workstation()
222 return freed; in erofs_shrink_workstation()
270 unsigned long freed = 0; in erofs_shrink_scan() local
297 freed += erofs_shrink_workstation(sbi, nr, false); in erofs_shrink_scan()
310 if (freed >= nr) in erofs_shrink_scan()
314 return freed; in erofs_shrink_scan()
/fs/nfsd/
Dnfscache.c231 long freed = 0; in prune_bucket() local
244 freed++; in prune_bucket()
246 return freed; in prune_bucket()
257 long freed = 0; in prune_cache_entries() local
265 freed += prune_bucket(b, nn); in prune_cache_entries()
268 return freed; in prune_cache_entries()
/fs/ext2/
Dballoc.c491 unsigned freed = 0, group_freed; in ext2_free_blocks() local
553 freed += group_freed; in ext2_free_blocks()
562 if (freed) { in ext2_free_blocks()
563 percpu_counter_add(&sbi->s_freeblocks_counter, freed); in ext2_free_blocks()
564 dquot_free_block_nodirty(inode, freed); in ext2_free_blocks()
/fs/xfs/
Dxfs_buf_item.c398 int freed; in xfs_buf_item_unpin() local
405 freed = atomic_dec_and_test(&bip->bli_refcount); in xfs_buf_item_unpin()
410 if (freed && stale) { in xfs_buf_item_unpin()
455 } else if (freed && remove) { in xfs_buf_item_unpin()
Dxfs_buf.c1672 unsigned long freed; in xfs_buftarg_shrink_scan() local
1674 freed = list_lru_shrink_walk(&btp->bt_lru, sc, in xfs_buftarg_shrink_scan()
1684 return freed; in xfs_buftarg_shrink_scan()
Dxfs_qm.c502 unsigned long freed; in xfs_qm_shrink_scan() local
511 freed = list_lru_shrink_walk(&qi->qi_lru, sc, in xfs_qm_shrink_scan()
526 return freed; in xfs_qm_shrink_scan()
/fs/ceph/
Ddir.c1253 unsigned long freed = 0; in __dentry_leases_walk() local
1322 freed++; in __dentry_leases_walk()
1329 return freed; in __dentry_leases_walk()
1376 unsigned long freed; in ceph_trim_dentries() local
1388 freed = __dentry_leases_walk(mdsc, &lwc, __dentry_lease_check); in ceph_trim_dentries()
1396 lwc.expire_dir_lease = freed < count; in ceph_trim_dentries()
1398 freed +=__dentry_leases_walk(mdsc, &lwc, __dir_lease_check); in ceph_trim_dentries()
1402 return freed > 0 ? 1 : 0; in ceph_trim_dentries()
/fs/
Dsuper.c67 long freed = 0; in super_cache_scan() local
105 freed = prune_dcache_sb(sb, sc); in super_cache_scan()
107 freed += prune_icache_sb(sb, sc); in super_cache_scan()
111 freed += sb->s_op->free_cached_objects(sb, sc); in super_cache_scan()
115 return freed; in super_cache_scan()
Dinode.c800 long freed; in prune_icache_sb() local
802 freed = list_lru_shrink_walk(&sb->s_inode_lru, sc, in prune_icache_sb()
805 return freed; in prune_icache_sb()
Ddcache.c1197 long freed; in prune_dcache_sb() local
1199 freed = list_lru_shrink_walk(&sb->s_dentry_lru, sc, in prune_dcache_sb()
1202 return freed; in prune_dcache_sb()
/fs/jbd2/
Djournal.c921 unsigned long freed; in __jbd2_update_log_tail() local
938 freed = block - journal->j_tail; in __jbd2_update_log_tail()
940 freed += journal->j_last - journal->j_first; in __jbd2_update_log_tail()
942 trace_jbd2_update_log_tail(journal, tid, block, freed); in __jbd2_update_log_tail()
946 journal->j_tail_sequence, tid, block, freed); in __jbd2_update_log_tail()
948 journal->j_free += freed; in __jbd2_update_log_tail()
Dcommit.c760 long freed = first_block - journal->j_tail; in jbd2_journal_commit_transaction() local
763 freed += journal->j_last - journal->j_first; in jbd2_journal_commit_transaction()
765 if (freed < journal->j_maxlen / 4) in jbd2_journal_commit_transaction()
/fs/ocfs2/dlm/
Ddlmrecovery.c2265 unsigned int freed = 0; in dlm_free_dead_locks() local
2284 freed++; in dlm_free_dead_locks()
2293 freed++; in dlm_free_dead_locks()
2302 freed++; in dlm_free_dead_locks()
2306 if (freed) { in dlm_free_dead_locks()
2309 res->lockname.len, res->lockname.name, freed, dead_node); in dlm_free_dead_locks()
2313 res->lockname.len, res->lockname.name, freed, dead_node); in dlm_free_dead_locks()
/fs/hugetlbfs/
Dinode.c424 int i, freed = 0; in remove_inode_hugepages() local
477 freed++; in remove_inode_hugepages()
492 (void)hugetlb_unreserve_pages(inode, start, LONG_MAX, freed); in remove_inode_hugepages()
/fs/gfs2/
Dquota.c167 unsigned long freed; in gfs2_qd_shrink_scan() local
172 freed = list_lru_shrink_walk(&gfs2_qd_lru, sc, in gfs2_qd_shrink_scan()
177 return freed; in gfs2_qd_shrink_scan()
Dglock.c1589 long freed = 0; in gfs2_scan_glock_lru() local
1600 freed++; in gfs2_scan_glock_lru()
1611 return freed; in gfs2_scan_glock_lru()
/fs/jfs/
Djfs_xtree.c3168 int freed, log; in xtTruncate() local
3262 freed = 0; in xtTruncate()
3410 freed = 1; in xtTruncate()
3479 if (freed == 0) { in xtTruncate()
/fs/jffs2/
DREADME.Locking15 obtained during space allocations (jffs2_reserve_space()) and freed
/fs/nfs/
Ddir.c2176 long freed = 0; in nfs_do_access_cache_scan() local
2192 freed++; in nfs_do_access_cache_scan()
2207 return freed; in nfs_do_access_cache_scan()
/fs/ext4/
Dmballoc.c4446 int freed = 0; in ext4_mb_discard_preallocations() local
4451 freed += ret; in ext4_mb_discard_preallocations()
4455 return freed; in ext4_mb_discard_preallocations()
4466 int freed; in ext4_mb_new_blocks() local
4565 freed = ext4_mb_discard_preallocations(sb, ac->ac_o_ex.fe_len); in ext4_mb_new_blocks()
4566 if (freed) in ext4_mb_new_blocks()

12