Skip to content

Commit 6b3b023

Browse files
chuckleveramschuma-ntap
authored andcommitted
rpcrdma: Use XA_FLAGS_ALLOC instead of XA_FLAGS_ALLOC1
Nit: The built-in xa_limit_32b range starts at 0, but XA_FLAGS_ALLOC1 configures the xarray's allocator to start at 1. Adopt the more conventional XA_FLAGS_ALLOC because there's no mechanical reason to skip 0. Signed-off-by: Chuck Lever <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent de48aad commit 6b3b023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sunrpc/xprtrdma/ib_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static int rpcrdma_add_one(struct ib_device *device)
111111
return -ENOMEM;
112112

113113
kref_init(&rd->rd_kref);
114-
xa_init_flags(&rd->rd_xa, XA_FLAGS_ALLOC1);
114+
xa_init_flags(&rd->rd_xa, XA_FLAGS_ALLOC);
115115
rd->rd_device = device;
116116
init_completion(&rd->rd_done);
117117
ib_set_client_data(device, &rpcrdma_ib_client, rd);

0 commit comments

Comments
 (0)