]> Pileus Git - ~andy/linux/blobdiff - net/sunrpc/cache.c
Merge branch 'for-3.14' of git://linux-nfs.org/~bfields/linux
[~andy/linux] / net / sunrpc / cache.c
index 0877db0787b104e51a40ca0649dd4f9a76a44899..ae333c1845bb42f28198cdfb957cd03e7412c14c 100644 (file)
@@ -619,7 +619,7 @@ static void cache_limit_defers(void)
 
        /* Consider removing either the first or the last */
        if (cache_defer_cnt > DFR_MAX) {
-               if (net_random() & 1)
+               if (prandom_u32() & 1)
                        discard = list_entry(cache_defer_list.next,
                                             struct cache_deferred_req, recent);
                else