]> Pileus Git - ~andy/linux/commit
ext4: use prandom_u32() instead of get_random_bytes()
authorTheodore Ts'o <tytso@mit.edu>
Fri, 8 Nov 2013 05:14:53 +0000 (00:14 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 8 Nov 2013 05:14:53 +0000 (00:14 -0500)
commitdd1f723bf56bd96efc9d90e9e60dc511c79de48f
tree3860500165c69c225ccd5121f2ffde93dfbf4f02
parentf2754114400afe38ad5ade3b588451c4f36a61af
ext4: use prandom_u32() instead of get_random_bytes()

Many of the uses of get_random_bytes() do not actually need
cryptographically secure random numbers.  Replace those uses with a
call to prandom_u32(), which is faster and which doesn't consume
entropy from the /dev/random driver.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ialloc.c
fs/ext4/mmp.c
fs/ext4/super.c