]> git.baikalelectronics.ru Git - kernel.git/commit
silence nfscache allocation warnings with kvzalloc
authorRik van Riel <riel@surriel.com>
Mon, 14 Sep 2020 17:07:19 +0000 (13:07 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Oct 2021 12:39:50 +0000 (14:39 +0200)
commit289d3047e164cc27e232fcff07659964aa6caccf
tree9707e21365d607fedc9365c6addcdec55d9249fb
parent55442e330835fbf12520f90ea67ce76c02e90940
silence nfscache allocation warnings with kvzalloc

commit 1cc360c12286ff840ff45cc98af575e40febc43c 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>
fs/nfsd/nfscache.c