Lines Matching refs:newdup
525 xfs_dir2_data_unused_t *newdup; /* new unused entry */
651 newdup = (xfs_dir2_data_unused_t *)((char *)d + offset);
652 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG);
653 newdup->length = cpu_to_be16(len + be16_to_cpu(postdup->length));
654 *xfs_dir2_data_unused_tag_p(newdup) =
655 cpu_to_be16((char *)newdup - (char *)d);
656 xfs_dir2_data_log_unused(tp, bp, newdup);
664 (void)xfs_dir2_data_freeinsert(d, newdup, needlogp);
670 needscan = be16_to_cpu(newdup->length) >
678 newdup = (xfs_dir2_data_unused_t *)((char *)d + offset);
679 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG);
680 newdup->length = cpu_to_be16(len);
681 *xfs_dir2_data_unused_tag_p(newdup) =
682 cpu_to_be16((char *)newdup - (char *)d);
683 xfs_dir2_data_log_unused(tp, bp, newdup);
684 (void)xfs_dir2_data_freeinsert(d, newdup, needlogp);
707 xfs_dir2_data_unused_t *newdup; /* new unused entry */
747 newdup = (xfs_dir2_data_unused_t *)((char *)d + offset + len);
748 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG);
749 newdup->length = cpu_to_be16(oldlen - len);
750 *xfs_dir2_data_unused_tag_p(newdup) =
751 cpu_to_be16((char *)newdup - (char *)d);
752 xfs_dir2_data_log_unused(tp, bp, newdup);
758 dfp = xfs_dir2_data_freeinsert(d, newdup, needlogp);
760 ASSERT(dfp->length == newdup->length);
761 ASSERT(be16_to_cpu(dfp->offset) == (char *)newdup - (char *)d);
775 newdup = dup;
776 newdup->length = cpu_to_be16(((char *)d + offset) - (char *)newdup);
777 *xfs_dir2_data_unused_tag_p(newdup) =
778 cpu_to_be16((char *)newdup - (char *)d);
779 xfs_dir2_data_log_unused(tp, bp, newdup);
785 dfp = xfs_dir2_data_freeinsert(d, newdup, needlogp);
787 ASSERT(dfp->length == newdup->length);
788 ASSERT(be16_to_cpu(dfp->offset) == (char *)newdup - (char *)d);
802 newdup = dup;
803 newdup->length = cpu_to_be16(((char *)d + offset) - (char *)newdup);
804 *xfs_dir2_data_unused_tag_p(newdup) =
805 cpu_to_be16((char *)newdup - (char *)d);
806 xfs_dir2_data_log_unused(tp, bp, newdup);
809 newdup2->length = cpu_to_be16(oldlen - len - be16_to_cpu(newdup->length));
825 (void)xfs_dir2_data_freeinsert(d, newdup,