Lines Matching refs:blp

198 	struct xfs_dir2_leaf_entry	*blp,
231 tagp = (__be16 *)blp - 1;
242 (uint)sizeof(*blp) < len)
244 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len)
247 dup = (xfs_dir2_data_unused_t *)blp;
255 tagp = (__be16 *)blp - 1;
283 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) {
311 struct xfs_dir2_leaf_entry *blp,
324 if (blp[fromidx].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) {
334 blp[toidx] = blp[fromidx];
341 (xfs_dir2_data_aoff_t)((char *)blp - (char *)hdr),
342 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)),
361 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */
401 blp = xfs_dir2_block_leaf_p(btp);
407 xfs_dir2_block_need_space(dp, hdr, btp, blp, &tagp, &dup,
443 xfs_dir2_block_compact(args, bp, hdr, btp, blp, &needlog,
445 /* recalculate blp post-compaction */
446 blp = xfs_dir2_block_leaf_p(btp);
461 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval)
468 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) {
481 be16_to_cpu(enddup->length) - sizeof(*blp));
483 (xfs_dir2_data_aoff_t)sizeof(*blp), &needlog,
505 blp--;
508 memmove(blp, &blp[1], mid * sizeof(*blp));
518 blp[lowstale].address !=
524 blp[highstale].address !=
536 memmove(&blp[lowstale], &blp[lowstale + 1],
537 (mid - lowstale) * sizeof(*blp));
548 memmove(&blp[mid + 1], &blp[mid],
549 (highstale - mid) * sizeof(*blp));
562 blp[mid].hashval = cpu_to_be32(args->hashval);
563 blp[mid].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(
607 xfs_dir2_leaf_entry_t *blp;
611 blp = xfs_dir2_block_leaf_p(btp);
612 xfs_trans_log_buf(tp, bp, (uint)((char *)&blp[first] - (char *)hdr),
613 (uint)((char *)&blp[last + 1] - (char *)hdr - 1));
641 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */
661 blp = xfs_dir2_block_leaf_p(btp);
667 be32_to_cpu(blp[ent].address)));
689 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */
712 blp = xfs_dir2_block_leaf_p(btp);
720 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval)
735 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) {
743 if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR)
764 be32_to_cpu(blp[mid].hashval) == hash);
789 xfs_dir2_leaf_entry_t *blp; /* block leaf pointer */
815 blp = xfs_dir2_block_leaf_p(btp);
821 be32_to_cpu(blp[ent].address)));
838 blp[ent].address = cpu_to_be32(XFS_DIR2_NULL_DATAPTR);
870 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */
890 blp = xfs_dir2_block_leaf_p(btp);
896 be32_to_cpu(blp[ent].address)));
1023 * Use up the space at the end of the block (blp/btp).
1086 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */
1163 blp = xfs_dir2_block_leaf_p(btp);
1164 endoffset = (uint)((char *)blp - (char *)hdr);
1185 blp[0].hashval = cpu_to_be32(xfs_dir_hash_dot);
1186 blp[0].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(offset));
1200 blp[1].hashval = cpu_to_be32(xfs_dir_hash_dotdot);
1201 blp[1].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(offset));
1254 blp[2 + i].hashval = cpu_to_be32(xfs_dir2_hashname(mp, &name));
1255 blp[2 + i].address =
1268 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort);