Home
last modified time | relevance | path

Searched refs:freed (Results 1 – 25 of 30) 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.c86 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()
Dsegment.h625 int freed, int needed) in has_not_enough_free_secs() argument
635 free_secs = free_sections(sbi) + freed; in has_not_enough_free_secs()
647 int freed, int needed) in has_enough_free_secs() argument
649 return !has_not_enough_free_secs(sbi, freed, needed); in has_enough_free_secs()
Dnode.c962 int freed = 0; in truncate_nodes() local
980 for (i = ofs; i < NIDS_PER_BLOCK; i++, freed++) { in truncate_nodes()
1009 freed = child_nofs; in truncate_nodes()
1018 freed++; in truncate_nodes()
1022 trace_f2fs_truncate_nodes_exit(dn->inode, freed); in truncate_nodes()
1023 return freed; in truncate_nodes()
/fs/erofs/
Dutils.c165 unsigned int freed = 0; in erofs_shrink_workstation() local
175 ++freed; in erofs_shrink_workstation()
177 return freed; in erofs_shrink_workstation()
181 return freed; in erofs_shrink_workstation()
230 unsigned long freed = 0; in erofs_shrink_scan() local
257 freed += erofs_shrink_workstation(sbi, nr - freed); in erofs_shrink_scan()
270 if (freed >= nr) in erofs_shrink_scan()
274 return freed; in erofs_shrink_scan()
/fs/nfsd/
Dnfscache.c248 long freed = 0; in prune_bucket() local
261 freed++; in prune_bucket()
263 return freed; in prune_bucket()
274 long freed = 0; in prune_cache_entries() local
282 freed += prune_bucket(b, nn); in prune_cache_entries()
285 return freed; in prune_cache_entries()
/fs/nfs/
Dnfs42xattr.c862 unsigned long freed; in nfs4_xattr_cache_scan() local
865 freed = list_lru_shrink_walk(&nfs4_xattr_cache_lru, sc, in nfs4_xattr_cache_scan()
875 return freed; in nfs4_xattr_cache_scan()
943 unsigned long freed; in nfs4_xattr_entry_scan() local
950 freed = list_lru_shrink_walk(lru, sc, entry_lru_isolate, &dispose); in nfs4_xattr_entry_scan()
966 return freed; in nfs4_xattr_entry_scan()
/fs/jbd2/
Dcheckpoint.c423 unsigned long freed; in jbd2_journal_shrink_checkpoint_list() local
453 freed = journal_shrink_one_cp_list(transaction->t_checkpoint_list, in jbd2_journal_shrink_checkpoint_list()
455 nr_freed += freed; in jbd2_journal_shrink_checkpoint_list()
456 (*nr_to_scan) -= min(*nr_to_scan, freed); in jbd2_journal_shrink_checkpoint_list()
Dcommit.c798 long freed = first_block - journal->j_tail; in jbd2_journal_commit_transaction() local
801 freed += journal->j_last - journal->j_first; in jbd2_journal_commit_transaction()
803 if (freed < jbd2_journal_get_max_txn_bufs(journal)) in jbd2_journal_commit_transaction()
Djournal.c1104 unsigned long freed; in __jbd2_update_log_tail() local
1121 freed = block - journal->j_tail; in __jbd2_update_log_tail()
1123 freed += journal->j_last - journal->j_first; in __jbd2_update_log_tail()
1125 trace_jbd2_update_log_tail(journal, tid, block, freed); in __jbd2_update_log_tail()
1129 journal->j_tail_sequence, tid, block, freed); in __jbd2_update_log_tail()
1131 journal->j_free += freed; in __jbd2_update_log_tail()
/fs/xfs/
Dxfs_buf_item.c488 int freed; in xfs_buf_item_unpin() local
504 freed = atomic_dec_and_test(&bip->bli_refcount); in xfs_buf_item_unpin()
505 if (freed && !stale && remove) in xfs_buf_item_unpin()
511 if (!freed) in xfs_buf_item_unpin()
Dxfs_buf.c1860 unsigned long freed; in xfs_buftarg_shrink_scan() local
1862 freed = list_lru_shrink_walk(&btp->bt_lru, sc, in xfs_buftarg_shrink_scan()
1872 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/ext2/
Dballoc.c489 unsigned freed = 0, group_freed; in ext2_free_blocks() local
551 freed += group_freed; in ext2_free_blocks()
560 if (freed) { in ext2_free_blocks()
561 percpu_counter_add(&sbi->s_freeblocks_counter, freed); in ext2_free_blocks()
562 dquot_free_block_nodirty(inode, freed); in ext2_free_blocks()
/fs/ceph/
Ddir.c1386 unsigned long freed = 0; in __dentry_leases_walk() local
1455 freed++; in __dentry_leases_walk()
1462 return freed; in __dentry_leases_walk()
1509 unsigned long freed; in ceph_trim_dentries() local
1521 freed = __dentry_leases_walk(mdsc, &lwc, __dentry_lease_check); in ceph_trim_dentries()
1529 lwc.expire_dir_lease = freed < count; in ceph_trim_dentries()
1531 freed +=__dentry_leases_walk(mdsc, &lwc, __dir_lease_check); in ceph_trim_dentries()
1535 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.c811 long freed; in prune_icache_sb() local
813 freed = list_lru_shrink_walk(&sb->s_inode_lru, sc, in prune_icache_sb()
816 return freed; in prune_icache_sb()
Ddcache.c1254 long freed; in prune_dcache_sb() local
1256 freed = list_lru_shrink_walk(&sb->s_dentry_lru, sc, in prune_dcache_sb()
1259 return freed; in prune_dcache_sb()
/fs/ocfs2/dlm/
Ddlmrecovery.c2256 unsigned int freed = 0; in dlm_free_dead_locks() local
2275 freed++; in dlm_free_dead_locks()
2284 freed++; in dlm_free_dead_locks()
2293 freed++; in dlm_free_dead_locks()
2297 if (freed) { in dlm_free_dead_locks()
2300 res->lockname.len, res->lockname.name, freed, dead_node); in dlm_free_dead_locks()
2304 res->lockname.len, res->lockname.name, freed, dead_node); in dlm_free_dead_locks()
/fs/hugetlbfs/
Dinode.c492 int i, freed = 0; in remove_inode_hugepages() local
553 freed++; in remove_inode_hugepages()
569 (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.c1992 long freed = 0; in gfs2_scan_glock_lru() local
2002 freed++; in gfs2_scan_glock_lru()
2013 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/ext4/
Dmballoc.c5568 int freed = 0, busy = 0; in ext4_mb_discard_preallocations() local
5578 freed += ret; in ext4_mb_discard_preallocations()
5588 return freed; in ext4_mb_discard_preallocations()
5594 int freed; in ext4_mb_discard_preallocations_should_retry() local
5598 freed = ext4_mb_discard_preallocations(sb, ac->ac_o_ex.fe_len); in ext4_mb_discard_preallocations_should_retry()
5599 if (freed) { in ext4_mb_discard_preallocations_should_retry()
5611 mb_debug(sb, "freed %d, retry ? %s\n", freed, ret ? "yes" : "no"); in ext4_mb_discard_preallocations_should_retry()

12