Lines Matching full:freed
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()
198 if (freed >= nr) in shrink_tnc_trees()
202 return freed; in shrink_tnc_trees()
210 * will soon be freed or become freeable. If there are no dirty znodes, returns
284 unsigned long freed; in ubifs_shrink_scan() local
299 freed = shrink_tnc_trees(nr, OLD_ZNODE_AGE, &contention); in ubifs_shrink_scan()
300 if (freed >= nr) in ubifs_shrink_scan()
304 freed += shrink_tnc_trees(nr - freed, YOUNG_ZNODE_AGE, &contention); in ubifs_shrink_scan()
305 if (freed >= nr) in ubifs_shrink_scan()
309 freed += shrink_tnc_trees(nr - freed, 0, &contention); in ubifs_shrink_scan()
311 if (!freed && contention) { in ubifs_shrink_scan()
312 dbg_tnc("freed nothing, but contention"); in ubifs_shrink_scan()
317 dbg_tnc("%lu znodes were freed, requested %lu", freed, nr); in ubifs_shrink_scan()
318 return freed; in ubifs_shrink_scan()