diff options
author | NeilBrown <neilb@suse.de> | 2024-08-06 21:11:32 -0400 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-09-20 19:29:23 -0400 |
commit | 73598a0cfb21fb21928e638f7f21be6021ac2a16 (patch) | |
tree | 266aeb2e0ee1ea7f5c5ce7b78264baa61030c6cb /fs/nfsd/cache.h | |
parent | c9f10f811cf707e7d7a33e9f7ff678aab9f85551 (diff) |
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>
Diffstat (limited to 'fs/nfsd/cache.h')
-rw-r--r-- | fs/nfsd/cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/cache.h b/fs/nfsd/cache.h index 66a05fefae98..bb7addef4a31 100644 --- a/fs/nfsd/cache.h +++ b/fs/nfsd/cache.h @@ -10,7 +10,7 @@ #define NFSCACHE_H #include <linux/sunrpc/svc.h> -#include "netns.h" +#include "nfsd.h" /* * Representation of a reply cache entry. |