Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756698AbYLAAc0 (ORCPT ); Sun, 30 Nov 2008 19:32:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752834AbYLAAcR (ORCPT ); Sun, 30 Nov 2008 19:32:17 -0500 Received: from extu-mxob-1.symantec.com ([216.10.194.28]:33400 "EHLO extu-mxob-1.symantec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752786AbYLAAcQ (ORCPT ); Sun, 30 Nov 2008 19:32:16 -0500 Date: Mon, 1 Dec 2008 00:32:04 +0000 (GMT) From: Hugh Dickins X-X-Sender: hugh@blonde.site To: Andrew Morton cc: David Woodhouse , Jens Axboe , Matthew Wilcox , Joern Engel , James Bottomley , Donjun Shin , Tejun Heo , Arjan van de Ven , Matt Mackall , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/9] swapfile: let others seed random In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 982 Lines: 26 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: Hugh Dickins --- To follow 10/9 mm/swapfile.c | 1 - 1 file changed, 1 deletion(-) --- swapfile10/mm/swapfile.c 2008-11-28 20:36:44.000000000 +0000 +++ swapfile11/mm/swapfile.c 2008-11-28 20:37:16.000000000 +0000 @@ -1842,7 +1842,6 @@ asmlinkage long sys_swapon(const char __ if (blk_queue_nonrot(bdev_get_queue(p->bdev))) { p->flags |= SWP_SOLIDSTATE; - srandom32((u32)get_seconds()); p->cluster_next = 1 + (random32() % p->highest_bit); } if (discard_swap(p) == 0) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/