summaryrefslogtreecommitdiff
path: root/net/sunrpc/xprtrdma/ib_client.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2024-08-12 18:47:58 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2024-08-19 18:50:41 +0300
commit6b3b023e2d0c130235c0e494f77df2a9a64ab6a2 (patch)
tree1ac7b12dd95e80773c5398945731f77ee23d7622 /net/sunrpc/xprtrdma/ib_client.c
parentde48aad2a8e80ba026ca91c383f590f0bf97b3c0 (diff)
downloadlinux-6b3b023e2d0c130235c0e494f77df2a9a64ab6a2.tar.xz
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 <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/ib_client.c')
-rw-r--r--net/sunrpc/xprtrdma/ib_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/ib_client.c b/net/sunrpc/xprtrdma/ib_client.c
index 4d1e9fa89573..7913d7bad23d 100644
--- a/net/sunrpc/xprtrdma/ib_client.c
+++ b/net/sunrpc/xprtrdma/ib_client.c
@@ -111,7 +111,7 @@ static int rpcrdma_add_one(struct ib_device *device)
return -ENOMEM;
kref_init(&rd->rd_kref);
- xa_init_flags(&rd->rd_xa, XA_FLAGS_ALLOC1);
+ xa_init_flags(&rd->rd_xa, XA_FLAGS_ALLOC);
rd->rd_device = device;
init_completion(&rd->rd_done);
ib_set_client_data(device, &rpcrdma_ib_client, rd);