OSDN Git Service

sunrpc: simplify two-level sysctl registration for svcrdma_parm_table
authorLuis Chamberlain <mcgrof@kernel.org>
Sat, 11 Mar 2023 23:39:40 +0000 (15:39 -0800)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 26 Apr 2023 13:05:01 +0000 (09:05 -0400)
commit376bcd9b37632cf191711a68aa25ab42f0048c2e
tree9a0355b02f9891d0757963aa09adf33a2b747da1
parentcf64b9bce95095b80f4589e4f54572cc5d8c1538
sunrpc: simplify two-level sysctl registration for svcrdma_parm_table

There is no need to declare two tables to just create directories,
this can be easily be done with a prefix path with register_sysctl().

Simplify this registration.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma.c