diff options
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r-- | fs/ext4/ialloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 137193ff389b..0ee59a6644e2 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -432,7 +432,7 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent, | |||
432 | ext4fs_dirhash(qstr->name, qstr->len, &hinfo); | 432 | ext4fs_dirhash(qstr->name, qstr->len, &hinfo); |
433 | grp = hinfo.hash; | 433 | grp = hinfo.hash; |
434 | } else | 434 | } else |
435 | get_random_bytes(&grp, sizeof(grp)); | 435 | grp = prandom_u32(); |
436 | parent_group = (unsigned)grp % ngroups; | 436 | parent_group = (unsigned)grp % ngroups; |
437 | for (i = 0; i < ngroups; i++) { | 437 | for (i = 0; i < ngroups; i++) { |
438 | g = (parent_group + i) % ngroups; | 438 | g = (parent_group + i) % ngroups; |