Lines Matching refs:length
109 if (INT_ISZERO(bf[0].length, ARCH_CONVERT)) { in xfs_dir2_data_check()
113 if (INT_ISZERO(bf[1].length, ARCH_CONVERT)) { in xfs_dir2_data_check()
117 if (INT_ISZERO(bf[2].length, ARCH_CONVERT)) { in xfs_dir2_data_check()
121 ASSERT(INT_GET(bf[0].length, ARCH_CONVERT) >= INT_GET(bf[1].length, ARCH_CONVERT)); in xfs_dir2_data_check()
122 ASSERT(INT_GET(bf[1].length, ARCH_CONVERT) >= INT_GET(bf[2].length, ARCH_CONVERT)); 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()
221 ASSERT(INT_ISZERO(dfp->length, ARCH_CONVERT)); 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()
232 ASSERT(INT_GET(dfp->offset, ARCH_CONVERT) + INT_GET(dfp->length, ARCH_CONVERT) <= off); 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()
235 ASSERT(INT_GET(dfp[-1].length, ARCH_CONVERT) >= INT_GET(dfp[0].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()
278 INT_COPY(new.length, dup->length, ARCH_CONVERT); in xfs_dir2_data_freeinsert()
283 if (INT_GET(new.length, ARCH_CONVERT) > INT_GET(dfp[0].length, ARCH_CONVERT)) { in xfs_dir2_data_freeinsert()
290 if (INT_GET(new.length, ARCH_CONVERT) > INT_GET(dfp[1].length, ARCH_CONVERT)) { in xfs_dir2_data_freeinsert()
296 if (INT_GET(new.length, ARCH_CONVERT) > INT_GET(dfp[2].length, ARCH_CONVERT)) { in xfs_dir2_data_freeinsert()
337 INT_ZERO(d->hdr.bestfree[2].length, ARCH_CONVERT); in xfs_dir2_data_freeremove()
390 p += INT_GET(dup->length, ARCH_CONVERT); in xfs_dir2_data_freescan()
443 INT_ZERO(d->hdr.bestfree[i].length, ARCH_CONVERT); in xfs_dir2_data_init()
453 INT_SET(d->hdr.bestfree[0].length, ARCH_CONVERT, t); in xfs_dir2_data_init()
454 INT_SET(dup->length, ARCH_CONVERT, t); in xfs_dir2_data_init()
520 (uint)((char *)&dup->length + sizeof(dup->length) - in xfs_dir2_data_log_unused()
611 needscan = !INT_ISZERO(d->hdr.bestfree[2].length, ARCH_CONVERT); in xfs_dir2_data_make_free()
615 INT_MOD(prevdup->length, ARCH_CONVERT, len + INT_GET(postdup->length, ARCH_CONVERT)); in xfs_dir2_data_make_free()
639 ASSERT(INT_GET(dfp->length, ARCH_CONVERT) == INT_GET(prevdup->length, ARCH_CONVERT)); in xfs_dir2_data_make_free()
640 ASSERT(INT_ISZERO(dfp[1].length, ARCH_CONVERT)); in xfs_dir2_data_make_free()
641 ASSERT(INT_ISZERO(dfp[2].length, ARCH_CONVERT)); in xfs_dir2_data_make_free()
649 INT_MOD(prevdup->length, ARCH_CONVERT, len); in xfs_dir2_data_make_free()
666 …needscan = INT_GET(prevdup->length, ARCH_CONVERT) > INT_GET(d->hdr.bestfree[2].length, ARCH_CONVER… in xfs_dir2_data_make_free()
675 INT_SET(newdup->length, ARCH_CONVERT, len + INT_GET(postdup->length, ARCH_CONVERT)); in xfs_dir2_data_make_free()
692 …needscan = INT_GET(newdup->length, ARCH_CONVERT) > INT_GET(d->hdr.bestfree[2].length, ARCH_CONVERT… in xfs_dir2_data_make_free()
700 INT_SET(newdup->length, ARCH_CONVERT, len); in xfs_dir2_data_make_free()
736 ASSERT(offset + len <= (char *)dup + INT_GET(dup->length, ARCH_CONVERT) - (char *)d); in xfs_dir2_data_use_free()
742 oldlen = INT_GET(dup->length, ARCH_CONVERT); in xfs_dir2_data_use_free()
743 ASSERT(dfp || oldlen <= INT_GET(d->hdr.bestfree[2].length, ARCH_CONVERT)); in xfs_dir2_data_use_free()
769 INT_SET(newdup->length, ARCH_CONVERT, oldlen - len); in xfs_dir2_data_use_free()
780 ASSERT(INT_GET(dfp->length, ARCH_CONVERT) == INT_GET(newdup->length, ARCH_CONVERT)); in xfs_dir2_data_use_free()
796 INT_SET(newdup->length, ARCH_CONVERT, (xfs_dir2_data_off_t) in xfs_dir2_data_use_free()
808 ASSERT(INT_GET(dfp->length, ARCH_CONVERT) == INT_GET(newdup->length, ARCH_CONVERT)); in xfs_dir2_data_use_free()
824 INT_SET(newdup->length, ARCH_CONVERT, (xfs_dir2_data_off_t) in xfs_dir2_data_use_free()
831 INT_SET(newdup2->length, ARCH_CONVERT, oldlen - len - INT_GET(newdup->length, ARCH_CONVERT)); in xfs_dir2_data_use_free()
844 needscan = !INT_ISZERO(d->hdr.bestfree[2].length, ARCH_CONVERT); in xfs_dir2_data_use_free()