Lines Matching refs:bestfree

97 	bf = d->hdr.bestfree;  in xfs_dir2_data_check()
217 for (dfp = &d->hdr.bestfree[0], seenzero = matched = 0; in xfs_dir2_data_freefind()
218 dfp < &d->hdr.bestfree[XFS_DIR2_DATA_FD_COUNT]; in xfs_dir2_data_freefind()
234 if (dfp > &d->hdr.bestfree[0]) 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()
247 for (dfp = &d->hdr.bestfree[0]; in xfs_dir2_data_freefind()
248 dfp < &d->hdr.bestfree[XFS_DIR2_DATA_FD_COUNT]; in xfs_dir2_data_freefind()
277 dfp = d->hdr.bestfree; in xfs_dir2_data_freeinsert()
320 if (dfp == &d->hdr.bestfree[0]) { in xfs_dir2_data_freeremove()
321 d->hdr.bestfree[0] = d->hdr.bestfree[1]; in xfs_dir2_data_freeremove()
322 d->hdr.bestfree[1] = d->hdr.bestfree[2]; in xfs_dir2_data_freeremove()
327 else if (dfp == &d->hdr.bestfree[1]) in xfs_dir2_data_freeremove()
328 d->hdr.bestfree[1] = d->hdr.bestfree[2]; in xfs_dir2_data_freeremove()
333 ASSERT(dfp == &d->hdr.bestfree[2]); in xfs_dir2_data_freeremove()
337 INT_ZERO(d->hdr.bestfree[2].length, ARCH_CONVERT); in xfs_dir2_data_freeremove()
338 INT_ZERO(d->hdr.bestfree[2].offset, ARCH_CONVERT); in xfs_dir2_data_freeremove()
365 memset(d->hdr.bestfree, 0, sizeof(d->hdr.bestfree)); in xfs_dir2_data_freescan()
441 INT_SET(d->hdr.bestfree[0].offset, ARCH_CONVERT, (xfs_dir2_data_off_t)sizeof(d->hdr)); in xfs_dir2_data_init()
443 INT_ZERO(d->hdr.bestfree[i].length, ARCH_CONVERT); in xfs_dir2_data_init()
444 INT_ZERO(d->hdr.bestfree[i].offset, ARCH_CONVERT); in xfs_dir2_data_init()
453 INT_SET(d->hdr.bestfree[0].length, ARCH_CONVERT, t); in xfs_dir2_data_init()
611 needscan = !INT_ISZERO(d->hdr.bestfree[2].length, ARCH_CONVERT); in xfs_dir2_data_make_free()
627 if (dfp == &d->hdr.bestfree[1]) { in xfs_dir2_data_make_free()
628 dfp = &d->hdr.bestfree[0]; in xfs_dir2_data_make_free()
630 dfp2 = &d->hdr.bestfree[1]; in xfs_dir2_data_make_free()
638 ASSERT(dfp == &d->hdr.bestfree[0]); 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()
692 …needscan = INT_GET(newdup->length, ARCH_CONVERT) > INT_GET(d->hdr.bestfree[2].length, ARCH_CONVERT… in xfs_dir2_data_make_free()
743 ASSERT(dfp || oldlen <= INT_GET(d->hdr.bestfree[2].length, ARCH_CONVERT)); in xfs_dir2_data_use_free()
757 needscan = !INT_ISZERO(d->hdr.bestfree[2].offset, ARCH_CONVERT); in xfs_dir2_data_use_free()
787 needscan = dfp == &d->hdr.bestfree[2]; in xfs_dir2_data_use_free()
815 needscan = dfp == &d->hdr.bestfree[2]; in xfs_dir2_data_use_free()
844 needscan = !INT_ISZERO(d->hdr.bestfree[2].length, ARCH_CONVERT); in xfs_dir2_data_use_free()