|
@@ -284,7 +284,7 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent)
|
|
|
int best_ndir = inodes_per_group;
|
|
int best_ndir = inodes_per_group;
|
|
|
int best_group = -1;
|
|
int best_group = -1;
|
|
|
|
|
|
|
|
- get_random_bytes(&group, sizeof(group));
|
|
|
|
|
|
|
+ group = prandom_u32();
|
|
|
parent_group = (unsigned)group % ngroups;
|
|
parent_group = (unsigned)group % ngroups;
|
|
|
for (i = 0; i < ngroups; i++) {
|
|
for (i = 0; i < ngroups; i++) {
|
|
|
group = (parent_group + i) % ngroups;
|
|
group = (parent_group + i) % ngroups;
|