nfsd: don't allocate the versions array.
authorNeilBrown <neilb@suse.de>
Wed, 7 Aug 2024 01:11:32 +0000 (21:11 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 20 Sep 2024 23:29:23 +0000 (19:29 -0400)
commit73598a0cfb21fb21928e638f7f21be6021ac2a16
tree266aeb2e0ee1ea7f5c5ce7b78264baa61030c6cb
parentc9f10f811cf707e7d7a33e9f7ff678aab9f85551
nfsd: don't allocate the versions array.

Instead of using kmalloc to allocate an array for storing active version
info, just declare an array to the max size - it is only 5 or so.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/cache.h
fs/nfsd/netns.h
fs/nfsd/nfsctl.c
fs/nfsd/nfsd.h
fs/nfsd/nfssvc.c