Home | History | Annotate | Download | only in lfs_cleanerd

Lines Matching defs:cost

746 	int64_t age, benefit, cost;
784 * The non-degenerate case. Use Rosenblum's cost-benefit algorithm.
787 * and weigh that against the cost (bytes read plus bytes written).
800 cost = lfs_sb_getssize(fs) + t->nbytes;
801 t->priority = (256 * benefit * age) / cost;
850 * Comparator for sort_segments: cost-benefit equation.
1024 * a hidden cleaning cost, since we are unaware of it until we
1025 * have already read the segments. Return the total cost, and fill
1026 * in *ifc with the part of that cost due to rewriting the Ifile.
1110 /* Compute cost-benefit coefficient */