Lines Matching defs:btp

192 	struct xfs_dir2_block_tail	*btp,
211 if (btp->stale) {
236 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) *
239 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len)
305 struct xfs_dir2_block_tail *btp,
316 fromidx = toidx = be32_to_cpu(btp->count) - 1;
332 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1);
333 *lfloghigh -= be32_to_cpu(btp->stale) - 1;
334 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1));
337 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)),
339 btp->stale = cpu_to_be32(1);
358 xfs_dir2_block_tail_t *btp; /* block tail */
395 btp = xfs_dir2_block_tail_p(args->geo, hdr);
396 blp = xfs_dir2_block_leaf_p(btp);
402 xfs_dir2_block_need_space(dp, hdr, btp, blp, &tagp, &dup,
438 xfs_dir2_block_compact(args, bp, hdr, btp, blp, &needlog,
441 blp = xfs_dir2_block_leaf_p(btp);
442 } else if (btp->stale) {
447 lfloglow = be32_to_cpu(btp->count);
454 for (low = 0, high = be32_to_cpu(btp->count) - 1; low <= high; ) {
469 if (!btp->stale) {
486 be32_add_cpu(&btp->count, 1);
518 highstale < be32_to_cpu(btp->count) &&
528 (highstale == be32_to_cpu(btp->count) ||
540 ASSERT(highstale < be32_to_cpu(btp->count));
548 be32_add_cpu(&btp->stale, -1);
603 xfs_dir2_block_tail_t *btp;
605 btp = xfs_dir2_block_tail_p(tp->t_mountp->m_dir_geo, hdr);
606 blp = xfs_dir2_block_leaf_p(btp);
620 xfs_dir2_block_tail_t *btp;
622 btp = xfs_dir2_block_tail_p(tp->t_mountp->m_dir_geo, hdr);
623 xfs_trans_log_buf(tp, bp, (uint)((char *)btp - (char *)hdr),
624 (uint)((char *)(btp + 1) - (char *)hdr - 1));
638 xfs_dir2_block_tail_t *btp; /* block tail */
655 btp = xfs_dir2_block_tail_p(args->geo, hdr);
656 blp = xfs_dir2_block_leaf_p(btp);
686 xfs_dir2_block_tail_t *btp; /* block tail */
706 btp = xfs_dir2_block_tail_p(args->geo, hdr);
707 blp = xfs_dir2_block_leaf_p(btp);
712 for (low = 0, high = be32_to_cpu(btp->count) - 1; ; ) {
758 } while (++mid < be32_to_cpu(btp->count) &&
786 xfs_dir2_block_tail_t *btp; /* block tail */
809 btp = xfs_dir2_block_tail_p(args->geo, hdr);
810 blp = xfs_dir2_block_leaf_p(btp);
828 be32_add_cpu(&btp->stale, 1);
867 xfs_dir2_block_tail_t *btp; /* block tail */
884 btp = xfs_dir2_block_tail_p(args->geo, hdr);
885 blp = xfs_dir2_block_leaf_p(btp);
931 xfs_dir2_block_tail_t *btp; /* block tail */
1017 * Use up the space at the end of the block (blp/btp).
1026 btp = xfs_dir2_block_tail_p(args->geo, hdr);
1027 btp->count = cpu_to_be32(leafhdr.count - leafhdr.stale);
1028 btp->stale = 0;
1033 lep = xfs_dir2_block_leaf_p(btp);
1040 ASSERT(to == be32_to_cpu(btp->count));
1041 xfs_dir2_block_log_leaf(tp, dbp, 0, be32_to_cpu(btp->count) - 1);
1082 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);