Lines Matching refs:dup
200 struct xfs_dir2_data_unused *dup = NULL; in xfs_dir2_block_need_space() local
214 dup = (xfs_dir2_data_unused_t *) in xfs_dir2_block_need_space()
227 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
233 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
234 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space()
236 dup = NULL; in xfs_dir2_block_need_space()
238 dup = NULL; in xfs_dir2_block_need_space()
240 dup = (xfs_dir2_data_unused_t *)blp; in xfs_dir2_block_need_space()
262 dup = (xfs_dir2_data_unused_t *) in xfs_dir2_block_need_space()
264 if (dup != enddup) { in xfs_dir2_block_need_space()
268 if (be16_to_cpu(dup->length) < len) in xfs_dir2_block_need_space()
269 dup = NULL; in xfs_dir2_block_need_space()
276 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_need_space()
281 dup = (xfs_dir2_data_unused_t *) in xfs_dir2_block_need_space()
284 dup = NULL; in xfs_dir2_block_need_space()
289 *dupp = dup; in xfs_dir2_block_need_space()
360 xfs_dir2_data_unused_t *dup; /* block unused entry */ in xfs_dir2_block_addname() local
400 xfs_dir2_block_need_space(dp, hdr, btp, blp, &tagp, &dup, in xfs_dir2_block_addname()
408 if (!dup) in xfs_dir2_block_addname()
416 if (!dup) { in xfs_dir2_block_addname()
551 dep = (xfs_dir2_data_entry_t *)dup; in xfs_dir2_block_addname()
562 error = xfs_dir2_data_use_free(args, bp, dup, in xfs_dir2_block_addname()
563 (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr), in xfs_dir2_block_addname()
931 xfs_dir2_data_unused_t *dup; /* unused data entry */ in xfs_dir2_leaf_to_block() local
999 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_leaf_to_block()
1003 if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG || in xfs_dir2_leaf_to_block()
1004 be16_to_cpu(dup->length) < size) in xfs_dir2_leaf_to_block()
1017 error = xfs_dir2_data_use_free(args, dbp, dup, in xfs_dir2_leaf_to_block()
1083 xfs_dir2_data_unused_t *dup; /* unused entry pointer */ in xfs_dir2_sf_to_block() local
1144 dup = bp->b_addr + offset; in xfs_dir2_sf_to_block()
1146 error = xfs_dir2_data_use_free(args, bp, dup, args->geo->blksize - i, in xfs_dir2_sf_to_block()
1162 error = xfs_dir2_data_use_free(args, bp, dup, in xfs_dir2_sf_to_block()
1163 (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr), in xfs_dir2_sf_to_block()
1164 be16_to_cpu(dup->length), &needlog, &needscan); in xfs_dir2_sf_to_block()
1223 dup = bp->b_addr + offset; in xfs_dir2_sf_to_block()
1224 dup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_sf_to_block()
1225 dup->length = cpu_to_be16(newoffset - offset); in xfs_dir2_sf_to_block()
1226 *xfs_dir2_data_unused_tag_p(dup) = cpu_to_be16(offset); in xfs_dir2_sf_to_block()
1227 xfs_dir2_data_log_unused(args, bp, dup); in xfs_dir2_sf_to_block()
1230 dup, &dummy); in xfs_dir2_sf_to_block()
1231 offset += be16_to_cpu(dup->length); in xfs_dir2_sf_to_block()