]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/rhashtable: cleanup fallback check in bucket_table_alloc()
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 6 Aug 2024 15:39:27 +0000 (08:39 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:43:32 +0000 (20:43 -0700)
commita15bec6a8f2f177e6c1388f23d02436e27994299
tree678423dfb76f81995933923dac853a37b89fe052
parent97cf8f5f93f8419d5e7902b89194530466e73bcd
lib/rhashtable: cleanup fallback check in bucket_table_alloc()

Upon allocation failure, the current check with the nofail bits is
unnecessary, and further stands in the way of discouraging direct use of
__GFP_NOFAIL.  Remove this and replace with the proper way of determining
if doing a non-blocking allocation for the nested table case.

Link: https://lkml.kernel.org/r/20240806153927.184515-1-dave@stgolabs.net
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Suggested-by: Michal Hocko <mhocko@suse.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/rhashtable.c