NFSD: Use struct_size() helper in alloc_session()
authorXiu Jianfeng <xiujianfeng@huawei.com>
Fri, 11 Nov 2022 09:18:35 +0000 (17:18 +0800)
committerChuck Lever <cel@kernel.org>
Sat, 10 Dec 2022 16:01:11 +0000 (11:01 -0500)
commit85a0d0c9a58002ef7d1bf5e3ea630f4fbd42a4f0
treeeb5861f0b65c6ac68b77b9d9266b97805d86ffb6
parent01d53a88c08951f88f2a42f1f1e6568928e0590e
NFSD: Use struct_size() helper in alloc_session()

Use struct_size() helper to simplify the code, no functional changes.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c