• Hugh Dickins's avatar
    swapfile: let others seed random · f0d7a4b3
    Hugh Dickins authored
    Remove the srandom32((u32)get_seconds()) from non-rotational swapon:
    there's been a coincidental discussion of earlier randomization, assume
    that goes ahead, let swapon be a client rather than stirring for itself.
    Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
    Cc: David Woodhouse <dwmw2@infradead.org>
    Cc: Donjun Shin <djshin90@gmail.com>
    Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
    Cc: Jens Axboe <jens.axboe@oracle.com>
    Cc: Joern Engel <joern@logfs.org>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Cc: Matthew Wilcox <matthew@wil.cx>
    Cc: Nick Piggin <nickpiggin@yahoo.com.au>
    Cc: Tejun Heo <teheo@suse.de>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    f0d7a4b3
swapfile.c 50.6 KB