Lines Matching refs:use_block
636 xfs_dir2_db_t use_block; /* data block number */ in xfs_dir2_leaf_addname() local
664 for (use_block = -1, lep = &ents[index]; in xfs_dir2_leaf_addname()
673 use_block = i; in xfs_dir2_leaf_addname()
680 if (use_block == -1) { in xfs_dir2_leaf_addname()
686 use_block == -1) in xfs_dir2_leaf_addname()
687 use_block = i; in xfs_dir2_leaf_addname()
689 use_block = i; in xfs_dir2_leaf_addname()
700 if (use_block == -1) in xfs_dir2_leaf_addname()
707 if (use_block != -1 && bestsp[use_block] == cpu_to_be16(NULLDATAOFF)) in xfs_dir2_leaf_addname()
708 use_block = -1; in xfs_dir2_leaf_addname()
752 return use_block == -1 ? -ENOSPC : 0; in xfs_dir2_leaf_addname()
758 if (args->total == 0 && use_block == -1) { in xfs_dir2_leaf_addname()
784 if (use_block == -1) { in xfs_dir2_leaf_addname()
789 &use_block))) { in xfs_dir2_leaf_addname()
796 if ((error = xfs_dir3_data_init(args, use_block, &dbp))) { in xfs_dir2_leaf_addname()
804 if (use_block >= be32_to_cpu(ltp->bestcount)) { in xfs_dir2_leaf_addname()
817 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
820 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
828 xfs_dir2_db_to_da(args->geo, use_block), in xfs_dir2_leaf_addname()
879 if (be16_to_cpu(bestsp[use_block]) != be16_to_cpu(bf[0].length)) { in xfs_dir2_leaf_addname()
880 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
882 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
893 xfs_dir2_db_off_to_dataptr(args->geo, use_block, in xfs_dir2_leaf_addname()