Lines Matching defs:newdup
846 xfs_dir2_data_unused_t *newdup; /* new unused entry */
970 newdup = (xfs_dir2_data_unused_t *)((char *)hdr + offset);
971 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG);
972 newdup->length = cpu_to_be16(len + be16_to_cpu(postdup->length));
973 *xfs_dir2_data_unused_tag_p(newdup) =
974 cpu_to_be16((char *)newdup - (char *)hdr);
975 xfs_dir2_data_log_unused(args, bp, newdup);
983 xfs_dir2_data_freeinsert(hdr, bf, newdup, needlogp);
989 needscan = be16_to_cpu(newdup->length) >
997 newdup = (xfs_dir2_data_unused_t *)((char *)hdr + offset);
998 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG);
999 newdup->length = cpu_to_be16(len);
1000 *xfs_dir2_data_unused_tag_p(newdup) =
1001 cpu_to_be16((char *)newdup - (char *)hdr);
1002 xfs_dir2_data_log_unused(args, bp, newdup);
1003 xfs_dir2_data_freeinsert(hdr, bf, newdup, needlogp);
1038 struct xfs_dir2_data_unused *newdup)
1042 if (dfp->length != newdup->length)
1044 if (be16_to_cpu(dfp->offset) != (char *)newdup - (char *)hdr)
1064 xfs_dir2_data_unused_t *newdup; /* new unused entry */
1108 newdup = (xfs_dir2_data_unused_t *)((char *)hdr + offset + len);
1109 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG);
1110 newdup->length = cpu_to_be16(oldlen - len);
1111 *xfs_dir2_data_unused_tag_p(newdup) =
1112 cpu_to_be16((char *)newdup - (char *)hdr);
1113 xfs_dir2_data_log_unused(args, bp, newdup);
1119 dfp = xfs_dir2_data_freeinsert(hdr, bf, newdup,
1121 fa = xfs_dir2_data_check_new_free(hdr, dfp, newdup);
1137 newdup = dup;
1138 newdup->length = cpu_to_be16(((char *)hdr + offset) - (char *)newdup);
1139 *xfs_dir2_data_unused_tag_p(newdup) =
1140 cpu_to_be16((char *)newdup - (char *)hdr);
1141 xfs_dir2_data_log_unused(args, bp, newdup);
1147 dfp = xfs_dir2_data_freeinsert(hdr, bf, newdup,
1149 fa = xfs_dir2_data_check_new_free(hdr, dfp, newdup);
1165 newdup = dup;
1166 newdup->length = cpu_to_be16(((char *)hdr + offset) - (char *)newdup);
1167 *xfs_dir2_data_unused_tag_p(newdup) =
1168 cpu_to_be16((char *)newdup - (char *)hdr);
1169 xfs_dir2_data_log_unused(args, bp, newdup);
1172 newdup2->length = cpu_to_be16(oldlen - len - be16_to_cpu(newdup->length));
1189 xfs_dir2_data_freeinsert(hdr, bf, newdup,