Lines Matching refs:stale
74 int highstale; /* high stale index */
79 int lowstale; /* low stale index */
117 * No stale entries? Need space for entry and new leaf.
119 if (!btp->stale) {
171 * If there are stale entries we'll use one for the leaf.
196 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) *
199 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len)
238 * Leave the highest-numbered stale entry stale.
262 lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1);
263 lfloghigh -= be32_to_cpu(btp->stale) - 1;
264 be32_add(&btp->count, -(be32_to_cpu(btp->stale) - 1));
267 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)),
269 blp += be32_to_cpu(btp->stale) - 1;
270 btp->stale = cpu_to_be32(1);
283 * For the no-stale case they're set explicitly.
285 else if (btp->stale) {
305 * No stale entries, will use enddup space to hold new leaf.
307 if (!btp->stale) {
343 * Use a stale leaf for our new entry.
358 * Move entries toward the low-numbered stale entry.
370 * Move entries toward the high-numbered stale entry.
381 be32_add(&btp->stale, -1);
781 be32_add(&btp->stale, 1);
784 * Remove the leaf entry by marking it stale.
943 (uint)sizeof(*lep) * (be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale));
972 btp->count = cpu_to_be32(be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale));
973 btp->stale = 0;
976 * Initialize the block leaf area. We compact out stale entries.
1119 btp->stale = 0;