Lines Matching refs:oldsfp
431 xfs_dir2_sf_hdr_t *oldsfp; /* original shortform dir */ in xfs_dir2_sf_addname_hard() local
443 oldsfp = (xfs_dir2_sf_hdr_t *)buf; in xfs_dir2_sf_addname_hard()
444 memcpy(oldsfp, sfp, old_isize); in xfs_dir2_sf_addname_hard()
451 oldsfep = xfs_dir2_sf_firstentry(oldsfp), in xfs_dir2_sf_addname_hard()
456 oldsfep = dp->d_ops->sf_nextentry(oldsfp, oldsfep), in xfs_dir2_sf_addname_hard()
476 nbytes = (int)((char *)oldsfep - (char *)oldsfp); in xfs_dir2_sf_addname_hard()
477 memcpy(sfp, oldsfp, nbytes); in xfs_dir2_sf_addname_hard()
1087 xfs_dir2_sf_hdr_t *oldsfp; /* old sf directory */ in xfs_dir2_sf_toino4() local
1103 oldsfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_toino4()
1104 ASSERT(oldsfp->i8count == 1); in xfs_dir2_sf_toino4()
1105 memcpy(buf, oldsfp, oldsize); in xfs_dir2_sf_toino4()
1109 newsize = oldsize - (oldsfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_toino4()
1115 oldsfp = (xfs_dir2_sf_hdr_t *)buf; in xfs_dir2_sf_toino4()
1120 sfp->count = oldsfp->count; in xfs_dir2_sf_toino4()
1122 dp->d_ops->sf_put_parent_ino(sfp, dp->d_ops->sf_get_parent_ino(oldsfp)); in xfs_dir2_sf_toino4()
1127 oldsfep = xfs_dir2_sf_firstentry(oldsfp); in xfs_dir2_sf_toino4()
1130 oldsfep = dp->d_ops->sf_nextentry(oldsfp, oldsfep)) { in xfs_dir2_sf_toino4()
1135 dp->d_ops->sf_get_ino(oldsfp, oldsfep)); in xfs_dir2_sf_toino4()
1160 xfs_dir2_sf_hdr_t *oldsfp; /* old sf directory */ in xfs_dir2_sf_toino8() local
1176 oldsfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_toino8()
1177 ASSERT(oldsfp->i8count == 0); in xfs_dir2_sf_toino8()
1178 memcpy(buf, oldsfp, oldsize); in xfs_dir2_sf_toino8()
1182 newsize = oldsize + (oldsfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_toino8()
1188 oldsfp = (xfs_dir2_sf_hdr_t *)buf; in xfs_dir2_sf_toino8()
1193 sfp->count = oldsfp->count; in xfs_dir2_sf_toino8()
1195 dp->d_ops->sf_put_parent_ino(sfp, dp->d_ops->sf_get_parent_ino(oldsfp)); in xfs_dir2_sf_toino8()
1200 oldsfep = xfs_dir2_sf_firstentry(oldsfp); in xfs_dir2_sf_toino8()
1203 oldsfep = dp->d_ops->sf_nextentry(oldsfp, oldsfep)) { in xfs_dir2_sf_toino8()
1208 dp->d_ops->sf_get_ino(oldsfp, oldsfep)); in xfs_dir2_sf_toino8()