]> www.infradead.org Git - users/dwmw2/linux.git/commit
NFSD: Use struct_size() helper in alloc_session()
authorXiu Jianfeng <xiujianfeng@huawei.com>
Fri, 11 Nov 2022 09:18:35 +0000 (17:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:23 +0000 (16:19 +0200)
commitd561fe540e807b358284ee3de43540bd6b1ef41f
tree1f8edad3b55cac588c5d339be0d8b9a634609577
parent4e293f2d214c16a0fc0eb482a145222a2fb75056
NFSD: Use struct_size() helper in alloc_session()

[ Upstream commit 85a0d0c9a58002ef7d1bf5e3ea630f4fbd42a4f0 ]

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