diff options
author | ZhangZhen <zhenzhang.zhang@huawei.com> | 2014-02-26 06:32:41 +0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2014-03-04 15:19:03 +0400 |
commit | e878167af92fda03eb3a8597eec24128d4d47c43 (patch) | |
tree | 27eb1888379fd6e6a182ea0d01401140c9819ba4 /fs/readdir.c | |
parent | 4ddb987a478aa303c38cfc543d309247ccbfa395 (diff) | |
download | linux-e878167af92fda03eb3a8597eec24128d4d47c43.tar.xz |
ext2/3: 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.
The commit dd1f723bf56bd96efc9d90e9e60dc511c79de48f has made that for
ext4, and i did the same for ext2/3.
Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/readdir.c')
0 files changed, 0 insertions, 0 deletions