Lines Matching refs:stale
83 int highstale; /* high stale index */
88 int lowstale; /* low stale index */
126 * No stale entries? Need space for entry and new leaf.
128 if (!btp->stale) {
180 * If there are stale entries we'll use one for the leaf.
205 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) *
208 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len)
266 lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1);
267 lfloghigh -= be32_to_cpu(btp->stale) - 1;
268 be32_add(&btp->count, -(be32_to_cpu(btp->stale) - 1));
271 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)),
273 blp += be32_to_cpu(btp->stale) - 1;
274 btp->stale = cpu_to_be32(1);
286 * For the no-stale case they're set explicitly.
288 else if (btp->stale) {
308 * No stale entries, will use enddup space to hold new leaf.
310 if (!btp->stale) {
346 * Use a stale leaf for our new entry.
361 * Move entries toward the low-numbered stale entry.
373 * Move entries toward the high-numbered stale entry.
384 be32_add(&btp->stale, -1);
783 be32_add(&btp->stale, 1);
786 * Remove the leaf entry by marking it stale.
944 (uint)sizeof(*lep) * (be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale));
973 btp->count = cpu_to_be32(be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale));
974 btp->stale = 0;
977 * Initialize the block leaf area. We compact out stale entries.
1119 btp->stale = 0;