Lines Matching refs:use_block
212 xfs_dir2_db_t use_block; /* data block number */ in xfs_dir2_leaf_addname() local
244 for (use_block = -1, lep = &leaf->ents[index]; in xfs_dir2_leaf_addname()
253 use_block = i; in xfs_dir2_leaf_addname()
260 if (use_block == -1) { in xfs_dir2_leaf_addname()
265 if (INT_GET(bestsp[i], ARCH_CONVERT) == NULLDATAOFF && use_block == -1) in xfs_dir2_leaf_addname()
266 use_block = i; in xfs_dir2_leaf_addname()
268 use_block = i; in xfs_dir2_leaf_addname()
278 (use_block != -1 ? 0 : (uint)sizeof(leaf->bests[0])); in xfs_dir2_leaf_addname()
283 if (use_block != -1 && INT_GET(bestsp[use_block], ARCH_CONVERT) == NULLDATAOFF) in xfs_dir2_leaf_addname()
284 use_block = -1; in xfs_dir2_leaf_addname()
329 return use_block == -1 ? XFS_ERROR(ENOSPC) : 0; in xfs_dir2_leaf_addname()
335 if (args->total == 0 && use_block == -1) { in xfs_dir2_leaf_addname()
361 if (use_block == -1) { in xfs_dir2_leaf_addname()
366 &use_block))) { in xfs_dir2_leaf_addname()
373 if ((error = xfs_dir2_data_init(args, use_block, &dbp))) { in xfs_dir2_leaf_addname()
381 if (use_block >= INT_GET(ltp->bestcount, ARCH_CONVERT)) { in xfs_dir2_leaf_addname()
393 xfs_dir2_leaf_log_bests(tp, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
395 INT_COPY(bestsp[use_block], data->hdr.bestfree[0].length, ARCH_CONVERT); in xfs_dir2_leaf_addname()
404 xfs_da_read_buf(tp, dp, XFS_DIR2_DB_TO_DA(mp, use_block), in xfs_dir2_leaf_addname()
450 …if (INT_GET(bestsp[use_block], ARCH_CONVERT) != INT_GET(data->hdr.bestfree[0].length, ARCH_CONVERT… in xfs_dir2_leaf_addname()
451 INT_COPY(bestsp[use_block], data->hdr.bestfree[0].length, ARCH_CONVERT); in xfs_dir2_leaf_addname()
453 xfs_dir2_leaf_log_bests(tp, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
555 …INT_SET(lep->address, ARCH_CONVERT, XFS_DIR2_DB_OFF_TO_DATAPTR(mp, use_block, INT_GET(*tagp, ARCH_… in xfs_dir2_leaf_addname()