diff options
-rw-r--r-- | mm/swapfile.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index 6a078557306a..d00523601913 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c | |||
@@ -1851,7 +1851,6 @@ asmlinkage long sys_swapon(const char __user * specialfile, int swap_flags) | |||
1851 | 1851 | ||
1852 | if (blk_queue_nonrot(bdev_get_queue(p->bdev))) { | 1852 | if (blk_queue_nonrot(bdev_get_queue(p->bdev))) { |
1853 | p->flags |= SWP_SOLIDSTATE; | 1853 | p->flags |= SWP_SOLIDSTATE; |
1854 | srandom32((u32)get_seconds()); | ||
1855 | p->cluster_next = 1 + (random32() % p->highest_bit); | 1854 | p->cluster_next = 1 + (random32() % p->highest_bit); |
1856 | } | 1855 | } |
1857 | if (discard_swap(p) == 0) | 1856 | if (discard_swap(p) == 0) |