]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ext2/ialloc.c
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
[karo-tx-linux.git] / fs / ext2 / ialloc.c
index 7cadd823bb311643a6cb7042222870767224b4c9..7d66fb0e4cca87e2ae9be18fb5f7862d1df1a2af 100644 (file)
@@ -284,7 +284,7 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent)
                int best_ndir = inodes_per_group;
                int best_group = -1;
 
-               get_random_bytes(&group, sizeof(group));
+               group = prandom_u32();
                parent_group = (unsigned)group % ngroups;
                for (i = 0; i < ngroups; i++) {
                        group = (parent_group + i) % ngroups;