diff options
| author | Rik van Riel <riel@surriel.com> | 2020-09-14 13:07:19 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-09 14:39:50 +0200 |
| commit | fecbe957ef4d869a3b185c5f4a8bc535d8b8f05b (patch) | |
| tree | 9707e21365d607fedc9365c6addcdec55d9249fb /include/linux/genl_magic_struct.h | |
| parent | 5546e3987dd1621224d04b6381f14897c61b4060 (diff) | |
silence nfscache allocation warnings with kvzalloc
commit 8c38b705b4f4ca4e7f9cc116141bc38391917c30 upstream.
silence nfscache allocation warnings with kvzalloc
Currently nfsd_reply_cache_init attempts hash table allocation through
kmalloc, and manually falls back to vzalloc if that fails. This makes
the code a little larger than needed, and creates a significant amount
of serial console spam if you have enough systems.
Switching to kvzalloc gets rid of the allocation warnings, and makes
the code a little cleaner too as a side effect.
Freeing of nn->drc_hashtbl is already done using kvfree currently.
Signed-off-by: Rik van Riel <riel@surriel.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Cc: Krzysztof Olędzki <ole@ans.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/genl_magic_struct.h')
0 files changed, 0 insertions, 0 deletions
