Lines Matching refs:blp
191 struct xfs_dir2_leaf_entry *blp,
224 tagp = (__be16 *)blp - 1;
235 (uint)sizeof(*blp) < len)
237 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len)
240 dup = (xfs_dir2_data_unused_t *)blp;
248 tagp = (__be16 *)blp - 1;
276 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) {
304 struct xfs_dir2_leaf_entry *blp,
317 if (blp[fromidx].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) {
327 blp[toidx] = blp[fromidx];
334 (xfs_dir2_data_aoff_t)((char *)blp - (char *)hdr),
335 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)),
354 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */
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,
438 /* recalculate blp post-compaction */
439 blp = xfs_dir2_block_leaf_p(btp);
454 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval)
461 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) {
474 be16_to_cpu(enddup->length) - sizeof(*blp));
476 (xfs_dir2_data_aoff_t)sizeof(*blp), &needlog,
498 blp--;
501 memmove(blp, &blp[1], mid * sizeof(*blp));
511 blp[lowstale].address !=
517 blp[highstale].address !=
529 memmove(&blp[lowstale], &blp[lowstale + 1],
530 (mid - lowstale) * sizeof(*blp));
541 memmove(&blp[mid + 1], &blp[mid],
542 (highstale - mid) * sizeof(*blp));
555 blp[mid].hashval = cpu_to_be32(args->hashval);
556 blp[mid].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(
600 xfs_dir2_leaf_entry_t *blp;
604 blp = xfs_dir2_block_leaf_p(btp);
605 xfs_trans_log_buf(tp, bp, (uint)((char *)&blp[first] - (char *)hdr),
606 (uint)((char *)&blp[last + 1] - (char *)hdr - 1));
634 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */
654 blp = xfs_dir2_block_leaf_p(btp);
660 be32_to_cpu(blp[ent].address)));
682 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */
705 blp = xfs_dir2_block_leaf_p(btp);
713 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval)
728 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) {
736 if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR)
757 be32_to_cpu(blp[mid].hashval) == hash);
782 xfs_dir2_leaf_entry_t *blp; /* block leaf pointer */
808 blp = xfs_dir2_block_leaf_p(btp);
814 be32_to_cpu(blp[ent].address)));
831 blp[ent].address = cpu_to_be32(XFS_DIR2_NULL_DATAPTR);
863 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */
883 blp = xfs_dir2_block_leaf_p(btp);
889 be32_to_cpu(blp[ent].address)));
1015 * Use up the space at the end of the block (blp/btp).
1078 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */
1157 blp = xfs_dir2_block_leaf_p(btp);
1158 endoffset = (uint)((char *)blp - (char *)hdr);
1179 blp[0].hashval = cpu_to_be32(xfs_dir_hash_dot);
1180 blp[0].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(offset));
1194 blp[1].hashval = cpu_to_be32(xfs_dir_hash_dotdot);
1195 blp[1].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(offset));
1248 blp[2 + i].hashval = cpu_to_be32(xfs_dir2_hashname(mp, &name));
1249 blp[2 + i].address =
1262 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort);