Lines Matching refs:stale

189 	int			compact;	/* compacting stale leaves */
191 int highstale; /* next stale entry */
196 int lowstale; /* previous stale entry */
215 * the block, if there are no stale entries it won't fit.
216 * Caller will do a split. If there are stale entries we'll do
221 if (!leaf->hdr.stale)
223 compact = be16_to_cpu(leaf->hdr.stale) > 1;
234 * Compact out all but one stale leaf entry. Leaves behind
244 else if (leaf->hdr.stale) {
249 * No stale entries, just insert a space for the new entry.
251 if (!leaf->hdr.stale) {
261 * There are stale entries. We'll use one for the new entry.
266 * which stale entry will be used.
270 * Find first stale entry before our insertion point.
279 * Find next stale entry after insertion point.
293 * Using the low stale entry.
294 * Shift entries up toward the stale slot.
311 * Using the high stale entry.
312 * Shift entries down toward the stale slot.
326 be16_add(&leaf->hdr.stale, -1);
352 int stale; /* count of stale leaves */
358 for (i = stale = 0; i < be16_to_cpu(leaf->hdr.count); i++) {
364 stale++;
366 ASSERT(be16_to_cpu(leaf->hdr.stale) == stale);
463 * Skip stale leaf entries.
642 int stale; /* count stale leaves copied */
669 * If the source has stale leaves, count the ones in the copy range
672 if (leaf_s->hdr.stale) {
675 for (i = start_s, stale = 0; i < start_s + count; i++) {
677 stale++;
680 stale = 0;
700 be16_add(&leaf_s->hdr.stale, -(stale));
702 be16_add(&leaf_d->hdr.stale, stale);
754 int oldstale; /* old count of stale leaves */
774 oldstale = be16_to_cpu(leaf1->hdr.stale) + be16_to_cpu(leaf2->hdr.stale);
809 ASSERT(be16_to_cpu(leaf1->hdr.stale) + be16_to_cpu(leaf2->hdr.stale) == oldstale);
884 * Kill the leaf entry by marking it stale.
887 be16_add(&leaf->hdr.stale, 1);
1043 (be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale))) <
1144 count = be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale);
1198 count = be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale);
1202 count += be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale);
1263 * If there are any stale leaf entries, take this opportunity
1266 if (drop_leaf->hdr.stale)
1268 if (save_leaf->hdr.stale)