Commit d8e93e3f authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle)
Browse files

XArray: Optimise xas_sibling() if !CONFIG_XARRAY_MULTI



If CONFIG_XARRAY_MULTI is disabled, then xas_sibling() must be false.

Reported-by: default avatarJaeJoon Jung <rgbi3307@gmail.com>
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
parent 3a00e7c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1836,7 +1836,7 @@ static bool xas_sibling(struct xa_state *xas)
	struct xa_node *node = xas->xa_node;
	unsigned long mask;

	if (!node)
	if (!IS_ENABLED(CONFIG_XARRAY_MULTI) || !node)
		return false;
	mask = (XA_CHUNK_SIZE << node->shift) - 1;
	return (xas->xa_index & mask) >