aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r--net/sunrpc/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index a72de074172d..e521d20e1970 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -619,7 +619,7 @@ static void cache_limit_defers(void)
619 619
620 /* Consider removing either the first or the last */ 620 /* Consider removing either the first or the last */
621 if (cache_defer_cnt > DFR_MAX) { 621 if (cache_defer_cnt > DFR_MAX) {
622 if (net_random() & 1) 622 if (prandom_u32() & 1)
623 discard = list_entry(cache_defer_list.next, 623 discard = list_entry(cache_defer_list.next,
624 struct cache_deferred_req, recent); 624 struct cache_deferred_req, recent);
625 else 625 else