Rik van Riel fecbe957ef 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>
2021-10-09 14:39:50 +02:00
..
2019-09-23 16:24:08 -04:00
2019-07-08 23:16:11 -04:00
2021-09-15 09:47:35 +02:00
2020-07-09 09:37:53 +02:00
2020-10-01 13:17:31 +02:00
2019-09-23 16:24:08 -04:00
2018-09-25 20:34:54 -04:00