Lines Matching refs:dup

91 	xfs_dir2_data_unused_t	*dup;		/* block unused entry */  in xfs_dir2_block_addname()  local
157 dup = enddup = NULL; in xfs_dir2_block_addname()
162 dup = (xfs_dir2_data_unused_t *) in xfs_dir2_block_addname()
164 if (dup == enddup) { in xfs_dir2_block_addname()
169 if (INT_GET(dup->length, ARCH_CONVERT) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_addname()
175 dup = (xfs_dir2_data_unused_t *) in xfs_dir2_block_addname()
179 dup = NULL; in xfs_dir2_block_addname()
186 if (INT_GET(dup->length, ARCH_CONVERT) < len) { in xfs_dir2_block_addname()
187 dup = NULL; in xfs_dir2_block_addname()
198 dup = (xfs_dir2_data_unused_t *) in xfs_dir2_block_addname()
213 dup = (xfs_dir2_data_unused_t *)((char *)block + INT_GET(*tagp, ARCH_CONVERT)); in xfs_dir2_block_addname()
218 if (INT_GET(dup->freetag, ARCH_CONVERT) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_addname()
219 if (INT_GET(dup->length, ARCH_CONVERT) + (INT_GET(btp->stale, ARCH_CONVERT) - 1) * in xfs_dir2_block_addname()
221 dup = NULL; in xfs_dir2_block_addname()
223 dup = NULL; in xfs_dir2_block_addname()
225 dup = (xfs_dir2_data_unused_t *)blp; in xfs_dir2_block_addname()
236 if (!dup) { in xfs_dir2_block_addname()
409 dep = (xfs_dir2_data_entry_t *)dup; in xfs_dir2_block_addname()
419 xfs_dir2_data_use_free(tp, bp, dup, in xfs_dir2_block_addname()
420 (xfs_dir2_data_aoff_t)((char *)dup - (char *)block), in xfs_dir2_block_addname()
461 xfs_dir2_data_unused_t *dup; /* block unused entry */ in xfs_dir2_block_getdents() local
506 dup = (xfs_dir2_data_unused_t *)ptr; in xfs_dir2_block_getdents()
510 if (INT_GET(dup->freetag, ARCH_CONVERT) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_getdents()
511 ptr += INT_GET(dup->length, ARCH_CONVERT); in xfs_dir2_block_getdents()
910 xfs_dir2_data_unused_t *dup; /* unused data entry */ in xfs_dir2_leaf_to_block() local
970 dup = (xfs_dir2_data_unused_t *)((char *)block + INT_GET(*tagp, ARCH_CONVERT)); in xfs_dir2_leaf_to_block()
974 …if (INT_GET(dup->freetag, ARCH_CONVERT) != XFS_DIR2_DATA_FREE_TAG || INT_GET(dup->length, ARCH_CON… in xfs_dir2_leaf_to_block()
987 xfs_dir2_data_use_free(tp, dbp, dup, mp->m_dirblksize - size, size, in xfs_dir2_leaf_to_block()
1057 xfs_dir2_data_unused_t *dup; /* unused entry pointer */ in xfs_dir2_sf_to_block() local
1130 dup = (xfs_dir2_data_unused_t *)block->u; in xfs_dir2_sf_to_block()
1132 xfs_dir2_data_use_free(tp, bp, dup, mp->m_dirblksize - i, i, &needlog, in xfs_dir2_sf_to_block()
1146 xfs_dir2_data_use_free(tp, bp, dup, in xfs_dir2_sf_to_block()
1147 (xfs_dir2_data_aoff_t)((char *)dup - (char *)block), in xfs_dir2_sf_to_block()
1148 INT_GET(dup->length, ARCH_CONVERT), &needlog, &needscan); in xfs_dir2_sf_to_block()
1199 dup = (xfs_dir2_data_unused_t *) in xfs_dir2_sf_to_block()
1201 INT_SET(dup->freetag, ARCH_CONVERT, XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_sf_to_block()
1202 INT_SET(dup->length, ARCH_CONVERT, newoffset - offset); in xfs_dir2_sf_to_block()
1203 INT_SET(*XFS_DIR2_DATA_UNUSED_TAG_P_ARCH(dup, ARCH_CONVERT), ARCH_CONVERT, in xfs_dir2_sf_to_block()
1205 ((char *)dup - (char *)block)); in xfs_dir2_sf_to_block()
1206 xfs_dir2_data_log_unused(tp, bp, dup); in xfs_dir2_sf_to_block()
1208 dup, &dummy); in xfs_dir2_sf_to_block()
1209 offset += INT_GET(dup->length, ARCH_CONVERT); in xfs_dir2_sf_to_block()