diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-04-10 10:08:12 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-04-12 15:27:33 +1000 |
commit | 00bdd439caea5b607bed108fb525e513fe10831b (patch) | |
tree | 3ac17e4f313e8e3ce32457634f0d5d09639a9992 /mm | |
parent | a0e817d721fa53aedee670ad521827ca66ce9804 (diff) |
mm/: rename random32() to prandom_u32()
Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/swapfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index b670d5ea4765..6c340d908b27 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -2121,7 +2121,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags) if (p->bdev) { if (blk_queue_nonrot(bdev_get_queue(p->bdev))) { p->flags |= SWP_SOLIDSTATE; - p->cluster_next = 1 + (random32() % p->highest_bit); + p->cluster_next = 1 + (prandom_u32() % p->highest_bit); } if ((swap_flags & SWAP_FLAG_DISCARD) && discard_swap(p) == 0) p->flags |= SWP_DISCARDABLE; |