Lines Matching refs:hdr

163 	struct xfs_dir2_data_hdr	*hdr,  in xfs_dir2_block_need_space()  argument
178 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_need_space()
189 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
201 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
225 enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
237 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
256 ((char *)hdr + be16_to_cpu(bf[1].offset)); in xfs_dir2_block_need_space()
276 struct xfs_dir2_data_hdr *hdr, in xfs_dir2_block_compact() argument
308 (xfs_dir2_data_aoff_t)((char *)blp - (char *)hdr), in xfs_dir2_block_compact()
317 xfs_dir2_data_freescan(args->dp, hdr, needlog); in xfs_dir2_block_compact()
327 xfs_dir2_data_hdr_t *hdr; /* block header */ in xfs_dir2_block_addname() local
366 hdr = bp->b_addr; in xfs_dir2_block_addname()
367 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_addname()
374 xfs_dir2_block_need_space(dp, hdr, btp, blp, &tagp, &dup, in xfs_dir2_block_addname()
410 xfs_dir2_block_compact(args, bp, hdr, btp, blp, &needlog, in xfs_dir2_block_addname()
447 aoff = (xfs_dir2_data_aoff_t)((char *)enddup - (char *)hdr + in xfs_dir2_block_addname()
464 xfs_dir2_data_freescan(dp, hdr, &needlog); in xfs_dir2_block_addname()
531 (char *)dep - (char *)hdr)); in xfs_dir2_block_addname()
537 (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr), in xfs_dir2_block_addname()
549 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_block_addname()
554 xfs_dir2_data_freescan(dp, hdr, &needlog); in xfs_dir2_block_addname()
573 xfs_dir2_data_hdr_t *hdr = bp->b_addr; in xfs_dir2_block_log_leaf() local
577 btp = xfs_dir2_block_tail_p(tp->t_mountp->m_dir_geo, hdr); in xfs_dir2_block_log_leaf()
579 xfs_trans_log_buf(tp, bp, (uint)((char *)&blp[first] - (char *)hdr), in xfs_dir2_block_log_leaf()
580 (uint)((char *)&blp[last + 1] - (char *)hdr - 1)); in xfs_dir2_block_log_leaf()
591 xfs_dir2_data_hdr_t *hdr = bp->b_addr; in xfs_dir2_block_log_tail() local
594 btp = xfs_dir2_block_tail_p(tp->t_mountp->m_dir_geo, hdr); in xfs_dir2_block_log_tail()
595 xfs_trans_log_buf(tp, bp, (uint)((char *)btp - (char *)hdr), in xfs_dir2_block_log_tail()
596 (uint)((char *)(btp + 1) - (char *)hdr - 1)); in xfs_dir2_block_log_tail()
607 xfs_dir2_data_hdr_t *hdr; /* block header */ in xfs_dir2_block_lookup() local
625 hdr = bp->b_addr; in xfs_dir2_block_lookup()
627 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_lookup()
632 dep = (xfs_dir2_data_entry_t *)((char *)hdr + in xfs_dir2_block_lookup()
655 xfs_dir2_data_hdr_t *hdr; /* block header */ in xfs_dir2_block_lookup_int() local
678 hdr = bp->b_addr; in xfs_dir2_block_lookup_int()
680 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_lookup_int()
718 ((char *)hdr + xfs_dir2_dataptr_to_off(args->geo, addr)); in xfs_dir2_block_lookup_int()
757 xfs_dir2_data_hdr_t *hdr; /* block header */ in xfs_dir2_block_removename() local
782 hdr = bp->b_addr; in xfs_dir2_block_removename()
783 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_removename()
788 dep = (xfs_dir2_data_entry_t *)((char *)hdr + in xfs_dir2_block_removename()
796 (xfs_dir2_data_aoff_t)((char *)dep - (char *)hdr), in xfs_dir2_block_removename()
812 xfs_dir2_data_freescan(dp, hdr, &needlog); in xfs_dir2_block_removename()
819 size = xfs_dir2_block_sfsize(dp, hdr, &sfh); in xfs_dir2_block_removename()
837 xfs_dir2_data_hdr_t *hdr; /* block header */ in xfs_dir2_block_replace() local
856 hdr = bp->b_addr; in xfs_dir2_block_replace()
857 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_replace()
862 dep = (xfs_dir2_data_entry_t *)((char *)hdr + in xfs_dir2_block_replace()
903 xfs_dir2_data_hdr_t *hdr; /* block header */ in xfs_dir2_leaf_to_block() local
963 hdr = dbp->b_addr; in xfs_dir2_leaf_to_block()
964 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_leaf_to_block()
965 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC)); in xfs_dir2_leaf_to_block()
975 tagp = (__be16 *)((char *)hdr + args->geo->blksize) - 1; in xfs_dir2_leaf_to_block()
976 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_leaf_to_block()
1001 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_leaf_to_block()
1020 xfs_dir2_data_freescan(dp, hdr, &needlog); in xfs_dir2_leaf_to_block()
1033 size = xfs_dir2_block_sfsize(dp, hdr, &sfh); in xfs_dir2_leaf_to_block()
1048 xfs_dir2_data_hdr_t *hdr; /* block header */ in xfs_dir2_sf_to_block() local
1118 hdr = bp->b_addr; in xfs_dir2_sf_to_block()
1129 dup = dp->d_ops->data_unused_p(hdr); in xfs_dir2_sf_to_block()
1139 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_sf_to_block()
1143 endoffset = (uint)((char *)blp - (char *)hdr); in xfs_dir2_sf_to_block()
1148 (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr), in xfs_dir2_sf_to_block()
1155 dep = dp->d_ops->data_dot_entry_p(hdr); in xfs_dir2_sf_to_block()
1161 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_sf_to_block()
1165 (char *)dep - (char *)hdr)); in xfs_dir2_sf_to_block()
1169 dep = dp->d_ops->data_dotdot_entry_p(hdr); in xfs_dir2_sf_to_block()
1175 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_sf_to_block()
1179 (char *)dep - (char *)hdr)); in xfs_dir2_sf_to_block()
1205 dup = (xfs_dir2_data_unused_t *)((char *)hdr + offset); in xfs_dir2_sf_to_block()
1209 ((char *)dup - (char *)hdr)); in xfs_dir2_sf_to_block()
1211 xfs_dir2_data_freeinsert(hdr, in xfs_dir2_sf_to_block()
1212 dp->d_ops->data_bestfree_p(hdr), in xfs_dir2_sf_to_block()
1220 dep = (xfs_dir2_data_entry_t *)((char *)hdr + newoffset); in xfs_dir2_sf_to_block()
1226 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_sf_to_block()
1233 (char *)dep - (char *)hdr)); in xfs_dir2_sf_to_block()
1234 offset = (int)((char *)(tagp + 1) - (char *)hdr); in xfs_dir2_sf_to_block()