Lines Matching refs:dup

82 	xfs_dir2_data_unused_t	*dup;		/* unused entry */  in xfs_dir2_data_check()  local
127 dup = (xfs_dir2_data_unused_t *)p; in xfs_dir2_data_check()
133 if (INT_GET(dup->freetag, ARCH_CONVERT) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_data_check()
135 ASSERT(INT_GET(*XFS_DIR2_DATA_UNUSED_TAG_P_ARCH(dup, ARCH_CONVERT), ARCH_CONVERT) == in xfs_dir2_data_check()
136 (char *)dup - (char *)d); in xfs_dir2_data_check()
137 dfp = xfs_dir2_data_freefind(d, dup); in xfs_dir2_data_check()
143 ASSERT(INT_GET(dup->length, ARCH_CONVERT) <= INT_GET(bf[2].length, ARCH_CONVERT)); in xfs_dir2_data_check()
144 p += INT_GET(dup->length, ARCH_CONVERT); in xfs_dir2_data_check()
199 xfs_dir2_data_unused_t *dup) /* data unused entry */ in xfs_dir2_data_freefind() argument
208 off = (xfs_dir2_data_aoff_t)((char *)dup - (char *)d); in xfs_dir2_data_freefind()
228 ASSERT(INT_GET(dfp->length, ARCH_CONVERT) == INT_GET(dup->length, ARCH_CONVERT)); in xfs_dir2_data_freefind()
230 ASSERT(off + INT_GET(dup->length, ARCH_CONVERT) <= INT_GET(dfp->offset, ARCH_CONVERT)); in xfs_dir2_data_freefind()
233 ASSERT(matched || INT_GET(dfp->length, ARCH_CONVERT) >= INT_GET(dup->length, ARCH_CONVERT)); in xfs_dir2_data_freefind()
242 …if (INT_GET(dup->length, ARCH_CONVERT) < INT_GET(d->hdr.bestfree[XFS_DIR2_DATA_FD_COUNT - 1].lengt… in xfs_dir2_data_freefind()
267 xfs_dir2_data_unused_t *dup, /* unused space */ in xfs_dir2_data_freeinsert() argument
278 INT_COPY(new.length, dup->length, ARCH_CONVERT); in xfs_dir2_data_freeinsert()
279 INT_SET(new.offset, ARCH_CONVERT, (xfs_dir2_data_off_t)((char *)dup - (char *)d)); in xfs_dir2_data_freeinsert()
354 xfs_dir2_data_unused_t *dup; /* unused data entry */ in xfs_dir2_data_freescan() local
382 dup = (xfs_dir2_data_unused_t *)p; in xfs_dir2_data_freescan()
386 if (INT_GET(dup->freetag, ARCH_CONVERT) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_data_freescan()
387 ASSERT((char *)dup - (char *)d == in xfs_dir2_data_freescan()
388 INT_GET(*XFS_DIR2_DATA_UNUSED_TAG_P_ARCH(dup, ARCH_CONVERT), ARCH_CONVERT)); in xfs_dir2_data_freescan()
389 xfs_dir2_data_freeinsert(d, dup, loghead); in xfs_dir2_data_freescan()
390 p += INT_GET(dup->length, ARCH_CONVERT); in xfs_dir2_data_freescan()
417 xfs_dir2_data_unused_t *dup; /* unused entry pointer */ in xfs_dir2_data_init() local
449 dup = &d->u[0].unused; in xfs_dir2_data_init()
450 INT_SET(dup->freetag, ARCH_CONVERT, XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_data_init()
454 INT_SET(dup->length, ARCH_CONVERT, t); in xfs_dir2_data_init()
455 INT_SET(*XFS_DIR2_DATA_UNUSED_TAG_P_ARCH(dup, ARCH_CONVERT), ARCH_CONVERT, in xfs_dir2_data_init()
456 (xfs_dir2_data_off_t)((char *)dup - (char *)d)); in xfs_dir2_data_init()
461 xfs_dir2_data_log_unused(tp, bp, dup); in xfs_dir2_data_init()
509 xfs_dir2_data_unused_t *dup) /* data unused pointer */ in xfs_dir2_data_log_unused() argument
519 xfs_da_log_buf(tp, bp, (uint)((char *)dup - (char *)d), in xfs_dir2_data_log_unused()
520 (uint)((char *)&dup->length + sizeof(dup->length) - in xfs_dir2_data_log_unused()
526 (uint)((char *)XFS_DIR2_DATA_UNUSED_TAG_P_ARCH(dup, ARCH_CONVERT) - (char *)d), in xfs_dir2_data_log_unused()
527 (uint)((char *)XFS_DIR2_DATA_UNUSED_TAG_P_ARCH(dup, ARCH_CONVERT) - (char *)d + in xfs_dir2_data_log_unused()
716 xfs_dir2_data_unused_t *dup, /* unused entry */ in xfs_dir2_data_use_free() argument
734 ASSERT(INT_GET(dup->freetag, ARCH_CONVERT) == XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_data_use_free()
735 ASSERT(offset >= (char *)dup - (char *)d); in xfs_dir2_data_use_free()
736 ASSERT(offset + len <= (char *)dup + INT_GET(dup->length, ARCH_CONVERT) - (char *)d); in xfs_dir2_data_use_free()
737 …ASSERT((char *)dup - (char *)d == INT_GET(*XFS_DIR2_DATA_UNUSED_TAG_P_ARCH(dup, ARCH_CONVERT), ARC… in xfs_dir2_data_use_free()
741 dfp = xfs_dir2_data_freefind(d, dup); in xfs_dir2_data_use_free()
742 oldlen = INT_GET(dup->length, ARCH_CONVERT); in xfs_dir2_data_use_free()
747 matchfront = (char *)dup - (char *)d == offset; in xfs_dir2_data_use_free()
748 matchback = (char *)dup + oldlen - (char *)d == offset + len; in xfs_dir2_data_use_free()
795 newdup = dup; in xfs_dir2_data_use_free()
823 newdup = dup; in xfs_dir2_data_use_free()