Lines Matching defs:btp
190 struct xfs_dir2_block_tail *btp,
209 if (btp->stale) {
234 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) *
237 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len)
303 struct xfs_dir2_block_tail *btp,
314 fromidx = toidx = be32_to_cpu(btp->count) - 1;
330 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1);
331 *lfloghigh -= be32_to_cpu(btp->stale) - 1;
332 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1));
335 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)),
337 btp->stale = cpu_to_be32(1);
356 xfs_dir2_block_tail_t *btp; /* block tail */
393 btp = xfs_dir2_block_tail_p(args->geo, hdr);
394 blp = xfs_dir2_block_leaf_p(btp);
400 xfs_dir2_block_need_space(dp, hdr, btp, blp, &tagp, &dup,
436 xfs_dir2_block_compact(args, bp, hdr, btp, blp, &needlog,
439 blp = xfs_dir2_block_leaf_p(btp);
440 } else if (btp->stale) {
445 lfloglow = be32_to_cpu(btp->count);
452 for (low = 0, high = be32_to_cpu(btp->count) - 1; low <= high; ) {
467 if (!btp->stale) {
484 be32_add_cpu(&btp->count, 1);
516 highstale < be32_to_cpu(btp->count) &&
526 (highstale == be32_to_cpu(btp->count) ||
538 ASSERT(highstale < be32_to_cpu(btp->count));
546 be32_add_cpu(&btp->stale, -1);
601 xfs_dir2_block_tail_t *btp;
603 btp = xfs_dir2_block_tail_p(tp->t_mountp->m_dir_geo, hdr);
604 blp = xfs_dir2_block_leaf_p(btp);
618 xfs_dir2_block_tail_t *btp;
620 btp = xfs_dir2_block_tail_p(tp->t_mountp->m_dir_geo, hdr);
621 xfs_trans_log_buf(tp, bp, (uint)((char *)btp - (char *)hdr),
622 (uint)((char *)(btp + 1) - (char *)hdr - 1));
636 xfs_dir2_block_tail_t *btp; /* block tail */
653 btp = xfs_dir2_block_tail_p(args->geo, hdr);
654 blp = xfs_dir2_block_leaf_p(btp);
684 xfs_dir2_block_tail_t *btp; /* block tail */
704 btp = xfs_dir2_block_tail_p(args->geo, hdr);
705 blp = xfs_dir2_block_leaf_p(btp);
710 for (low = 0, high = be32_to_cpu(btp->count) - 1; ; ) {
756 } while (++mid < be32_to_cpu(btp->count) &&
784 xfs_dir2_block_tail_t *btp; /* block tail */
807 btp = xfs_dir2_block_tail_p(args->geo, hdr);
808 blp = xfs_dir2_block_leaf_p(btp);
826 be32_add_cpu(&btp->stale, 1);
865 xfs_dir2_block_tail_t *btp; /* block tail */
882 btp = xfs_dir2_block_tail_p(args->geo, hdr);
883 blp = xfs_dir2_block_leaf_p(btp);
929 xfs_dir2_block_tail_t *btp; /* block tail */
1015 * Use up the space at the end of the block (blp/btp).
1024 btp = xfs_dir2_block_tail_p(args->geo, hdr);
1025 btp->count = cpu_to_be32(leafhdr.count - leafhdr.stale);
1026 btp->stale = 0;
1031 lep = xfs_dir2_block_leaf_p(btp);
1038 ASSERT(to == be32_to_cpu(btp->count));
1039 xfs_dir2_block_log_leaf(tp, dbp, 0, be32_to_cpu(btp->count) - 1);
1080 xfs_dir2_block_tail_t *btp; /* block tail pointer */
1138 i = (uint)sizeof(*btp) +
1154 btp = xfs_dir2_block_tail_p(args->geo, hdr);
1155 btp->count = cpu_to_be32(sfp->count + 2); /* ., .. */
1156 btp->stale = 0;
1157 blp = xfs_dir2_block_leaf_p(btp);
1262 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort);
1268 xfs_dir2_block_log_leaf(tp, bp, 0, be32_to_cpu(btp->count) - 1);