/* Look up a leaf entry in a node-format leaf block. If this is an addname then the extrablk in state is a freespace block, otherwise it's a data block.  */
int xfs_dir2_leafn_lookup_int(xfs_dabuf_t *bp, xfs_da_args_t *args, int *indexp, xfs_da_state_t *state)
/* Look up a leaf entry in a node-format leaf block. If this is an addname then the extrablk in state is a freespace block, otherwise it's a data block.  */
int xfs_dir2_leafn_lookup_int(xfs_dabuf_t *bp, xfs_da_args_t *args, int *indexp, xfs_da_state_t *state)
{
	if (args->op_flags & XFS_DA_OP_ADDNAME)
		return xfs_dir2_leafn_lookup_for_addname(bp, args, indexp,
							state);
	return xfs_dir2_leafn_lookup_for_entry(bp, args, indexp, state);
}