Unverified Commit 410b12b8 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!6230 xarray: inline xas_descend to improve performance

parents 03d68844 127c7b95
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -200,7 +200,8 @@ static void *xas_start(struct xa_state *xas)
	return entry;
}

static void *xas_descend(struct xa_state *xas, struct xa_node *node)
static __always_inline void *xas_descend(struct xa_state *xas,
					struct xa_node *node)
{
	unsigned int offset = get_offset(xas->xa_index, node);
	void *entry = xa_entry(xas->xa, node, offset);