Lines Matching refs:bf

23 		struct xfs_dir2_data_hdr *hdr, struct xfs_dir2_data_free *bf,
103 xfs_dir2_data_free_t *bf; /* bestfree table */ in __xfs_dir3_data_check() local
152 bf = xfs_dir2_data_bestfree_p(mp, hdr); in __xfs_dir3_data_check()
154 if (!bf[0].length) { in __xfs_dir3_data_check()
155 if (bf[0].offset) in __xfs_dir3_data_check()
159 if (!bf[1].length) { in __xfs_dir3_data_check()
160 if (bf[1].offset) in __xfs_dir3_data_check()
164 if (!bf[2].length) { in __xfs_dir3_data_check()
165 if (bf[2].offset) in __xfs_dir3_data_check()
170 if (be16_to_cpu(bf[0].length) < be16_to_cpu(bf[1].length)) in __xfs_dir3_data_check()
172 if (be16_to_cpu(bf[1].length) < be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check()
196 fa = xfs_dir2_data_freefind_verify(hdr, bf, dup, &dfp); in __xfs_dir3_data_check()
200 i = (int)(dfp - bf); in __xfs_dir3_data_check()
206 be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check()
460 struct xfs_dir2_data_free *bf, in xfs_dir2_data_freefind_verify() argument
477 for (dfp = &bf[0]; dfp < &bf[XFS_DIR2_DATA_FD_COUNT]; dfp++) { in xfs_dir2_data_freefind_verify()
502 if (dfp > &bf[0] && in xfs_dir2_data_freefind_verify()
508 *bf_ent = xfs_dir2_data_freefind(hdr, bf, dup); in xfs_dir2_data_freefind_verify()
519 struct xfs_dir2_data_free *bf, /* bestfree table pointer */ in xfs_dir2_data_freefind() argument
532 be16_to_cpu(bf[XFS_DIR2_DATA_FD_COUNT - 1].length)) in xfs_dir2_data_freefind()
537 for (dfp = &bf[0]; dfp < &bf[XFS_DIR2_DATA_FD_COUNT]; dfp++) { in xfs_dir2_data_freefind()
599 struct xfs_dir2_data_free *bf, /* bestfree table pointer */ in xfs_dir2_data_freeremove() argument
612 if (dfp == &bf[0]) { in xfs_dir2_data_freeremove()
613 bf[0] = bf[1]; in xfs_dir2_data_freeremove()
614 bf[1] = bf[2]; in xfs_dir2_data_freeremove()
619 else if (dfp == &bf[1]) in xfs_dir2_data_freeremove()
620 bf[1] = bf[2]; in xfs_dir2_data_freeremove()
625 ASSERT(dfp == &bf[2]); in xfs_dir2_data_freeremove()
629 bf[2].length = 0; in xfs_dir2_data_freeremove()
630 bf[2].offset = 0; in xfs_dir2_data_freeremove()
644 struct xfs_dir2_data_free *bf = xfs_dir2_data_bestfree_p(mp, hdr); in xfs_dir2_data_freescan() local
657 memset(bf, 0, sizeof(*bf) * XFS_DIR2_DATA_FD_COUNT); in xfs_dir2_data_freescan()
671 xfs_dir2_data_freeinsert(hdr, bf, dup, loghead); in xfs_dir2_data_freescan()
702 struct xfs_dir2_data_free *bf; in xfs_dir3_data_init() local
732 bf = xfs_dir2_data_bestfree_p(mp, hdr); in xfs_dir3_data_init()
733 bf[0].offset = cpu_to_be16(geo->data_entry_offset); in xfs_dir3_data_init()
734 bf[0].length = cpu_to_be16(geo->blksize - geo->data_entry_offset); in xfs_dir3_data_init()
736 bf[i].length = 0; in xfs_dir3_data_init()
737 bf[i].offset = 0; in xfs_dir3_data_init()
745 dup->length = bf[0].length; in xfs_dir3_data_init()
850 struct xfs_dir2_data_free *bf; in xfs_dir2_data_make_free() local
890 bf = xfs_dir2_data_bestfree_p(args->dp->i_mount, hdr); in xfs_dir2_data_make_free()
897 dfp = xfs_dir2_data_freefind(hdr, bf, prevdup); in xfs_dir2_data_make_free()
898 dfp2 = xfs_dir2_data_freefind(hdr, bf, postdup); in xfs_dir2_data_make_free()
905 needscan = (bf[2].length != 0); in xfs_dir2_data_make_free()
921 if (dfp == &bf[1]) { in xfs_dir2_data_make_free()
922 dfp = &bf[0]; in xfs_dir2_data_make_free()
924 dfp2 = &bf[1]; in xfs_dir2_data_make_free()
926 xfs_dir2_data_freeremove(hdr, bf, dfp2, needlogp); in xfs_dir2_data_make_free()
927 xfs_dir2_data_freeremove(hdr, bf, dfp, needlogp); in xfs_dir2_data_make_free()
931 dfp = xfs_dir2_data_freeinsert(hdr, bf, prevdup, in xfs_dir2_data_make_free()
933 ASSERT(dfp == &bf[0]); in xfs_dir2_data_make_free()
943 dfp = xfs_dir2_data_freefind(hdr, bf, prevdup); in xfs_dir2_data_make_free()
954 xfs_dir2_data_freeremove(hdr, bf, dfp, needlogp); in xfs_dir2_data_make_free()
955 xfs_dir2_data_freeinsert(hdr, bf, prevdup, needlogp); in xfs_dir2_data_make_free()
962 be16_to_cpu(bf[2].length); in xfs_dir2_data_make_free()
969 dfp = xfs_dir2_data_freefind(hdr, bf, postdup); in xfs_dir2_data_make_free()
982 xfs_dir2_data_freeremove(hdr, bf, dfp, needlogp); in xfs_dir2_data_make_free()
983 xfs_dir2_data_freeinsert(hdr, bf, newdup, needlogp); in xfs_dir2_data_make_free()
990 be16_to_cpu(bf[2].length); in xfs_dir2_data_make_free()
1003 xfs_dir2_data_freeinsert(hdr, bf, newdup, needlogp); in xfs_dir2_data_make_free()
1066 struct xfs_dir2_data_free *bf; in xfs_dir2_data_use_free() local
1081 bf = xfs_dir2_data_bestfree_p(args->dp->i_mount, hdr); in xfs_dir2_data_use_free()
1082 dfp = xfs_dir2_data_freefind(hdr, bf, dup); in xfs_dir2_data_use_free()
1083 ASSERT(dfp || oldlen <= be16_to_cpu(bf[2].length)); in xfs_dir2_data_use_free()
1097 needscan = (bf[2].offset != 0); in xfs_dir2_data_use_free()
1099 xfs_dir2_data_freeremove(hdr, bf, dfp, in xfs_dir2_data_use_free()
1118 xfs_dir2_data_freeremove(hdr, bf, dfp, needlogp); in xfs_dir2_data_use_free()
1119 dfp = xfs_dir2_data_freeinsert(hdr, bf, newdup, in xfs_dir2_data_use_free()
1129 needscan = dfp == &bf[2]; in xfs_dir2_data_use_free()
1146 xfs_dir2_data_freeremove(hdr, bf, dfp, needlogp); in xfs_dir2_data_use_free()
1147 dfp = xfs_dir2_data_freeinsert(hdr, bf, newdup, in xfs_dir2_data_use_free()
1157 needscan = dfp == &bf[2]; in xfs_dir2_data_use_free()
1185 needscan = (bf[2].length != 0); in xfs_dir2_data_use_free()
1187 xfs_dir2_data_freeremove(hdr, bf, dfp, in xfs_dir2_data_use_free()
1189 xfs_dir2_data_freeinsert(hdr, bf, newdup, in xfs_dir2_data_use_free()
1191 xfs_dir2_data_freeinsert(hdr, bf, newdup2, in xfs_dir2_data_use_free()