diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-04-18 09:49:16 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-04-23 17:19:06 +1000 |
commit | ca9068d514fda6f9c6f9e6b6deeb3f41409cf540 (patch) | |
tree | 330a3773b486a903be53ac3ec967cfdafe41d39b /mm | |
parent | 9fe51422ec5ebd6bec6c6452fb2d73bbe76aa53f (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; |