diff options
author | Rik van Riel <riel@surriel.com> | 2020-09-14 20:07:19 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-09-26 01:01:28 +0300 |
commit | 8c38b705b4f4ca4e7f9cc116141bc38391917c30 (patch) | |
tree | 98d337146b6942caf2df5f30c243f7a206ce8dfa /net/sunrpc | |
parent | 44b49aa65f8603ad274c448310b5ff95a78d394c (diff) | |
download | linux-8c38b705b4f4ca4e7f9cc116141bc38391917c30.tar.xz |
silence nfscache allocation warnings with kvzalloc
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>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions