Lines Matching refs:newdup
873 xfs_dir2_data_unused_t *newdup; /* new unused entry */ in xfs_dir2_data_make_free() local
997 newdup = (xfs_dir2_data_unused_t *)((char *)hdr + offset); in xfs_dir2_data_make_free()
998 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_data_make_free()
999 newdup->length = cpu_to_be16(len + be16_to_cpu(postdup->length)); in xfs_dir2_data_make_free()
1000 *xfs_dir2_data_unused_tag_p(newdup) = in xfs_dir2_data_make_free()
1001 cpu_to_be16((char *)newdup - (char *)hdr); in xfs_dir2_data_make_free()
1002 xfs_dir2_data_log_unused(args, bp, newdup); in xfs_dir2_data_make_free()
1010 xfs_dir2_data_freeinsert(hdr, bf, newdup, needlogp); in xfs_dir2_data_make_free()
1016 needscan = be16_to_cpu(newdup->length) > in xfs_dir2_data_make_free()
1024 newdup = (xfs_dir2_data_unused_t *)((char *)hdr + offset); in xfs_dir2_data_make_free()
1025 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_data_make_free()
1026 newdup->length = cpu_to_be16(len); in xfs_dir2_data_make_free()
1027 *xfs_dir2_data_unused_tag_p(newdup) = in xfs_dir2_data_make_free()
1028 cpu_to_be16((char *)newdup - (char *)hdr); in xfs_dir2_data_make_free()
1029 xfs_dir2_data_log_unused(args, bp, newdup); in xfs_dir2_data_make_free()
1030 xfs_dir2_data_freeinsert(hdr, bf, newdup, needlogp); in xfs_dir2_data_make_free()
1065 struct xfs_dir2_data_unused *newdup) in xfs_dir2_data_check_new_free() argument
1069 if (dfp->length != newdup->length) in xfs_dir2_data_check_new_free()
1071 if (be16_to_cpu(dfp->offset) != (char *)newdup - (char *)hdr) in xfs_dir2_data_check_new_free()
1091 xfs_dir2_data_unused_t *newdup; /* new unused entry */ in xfs_dir2_data_use_free() local
1135 newdup = (xfs_dir2_data_unused_t *)((char *)hdr + offset + len); in xfs_dir2_data_use_free()
1136 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_data_use_free()
1137 newdup->length = cpu_to_be16(oldlen - len); in xfs_dir2_data_use_free()
1138 *xfs_dir2_data_unused_tag_p(newdup) = in xfs_dir2_data_use_free()
1139 cpu_to_be16((char *)newdup - (char *)hdr); in xfs_dir2_data_use_free()
1140 xfs_dir2_data_log_unused(args, bp, newdup); in xfs_dir2_data_use_free()
1146 dfp = xfs_dir2_data_freeinsert(hdr, bf, newdup, in xfs_dir2_data_use_free()
1148 fa = xfs_dir2_data_check_new_free(hdr, dfp, newdup); in xfs_dir2_data_use_free()
1164 newdup = dup; in xfs_dir2_data_use_free()
1165 newdup->length = cpu_to_be16(((char *)hdr + offset) - (char *)newdup); in xfs_dir2_data_use_free()
1166 *xfs_dir2_data_unused_tag_p(newdup) = in xfs_dir2_data_use_free()
1167 cpu_to_be16((char *)newdup - (char *)hdr); in xfs_dir2_data_use_free()
1168 xfs_dir2_data_log_unused(args, bp, newdup); in xfs_dir2_data_use_free()
1174 dfp = xfs_dir2_data_freeinsert(hdr, bf, newdup, in xfs_dir2_data_use_free()
1176 fa = xfs_dir2_data_check_new_free(hdr, dfp, newdup); in xfs_dir2_data_use_free()
1192 newdup = dup; in xfs_dir2_data_use_free()
1193 newdup->length = cpu_to_be16(((char *)hdr + offset) - (char *)newdup); in xfs_dir2_data_use_free()
1194 *xfs_dir2_data_unused_tag_p(newdup) = in xfs_dir2_data_use_free()
1195 cpu_to_be16((char *)newdup - (char *)hdr); in xfs_dir2_data_use_free()
1196 xfs_dir2_data_log_unused(args, bp, newdup); in xfs_dir2_data_use_free()
1199 newdup2->length = cpu_to_be16(oldlen - len - be16_to_cpu(newdup->length)); in xfs_dir2_data_use_free()
1216 xfs_dir2_data_freeinsert(hdr, bf, newdup, in xfs_dir2_data_use_free()