]> Pileus Git - ~andy/linux/blobdiff - fs/ext4/ialloc.c
switch mnt_hash to hlist
[~andy/linux] / fs / ext4 / ialloc.c
index 137193ff389b88510f414499116c8a9ee858abe5..0ee59a6644e211b752480364c95e5616ab9e92fd 100644 (file)
@@ -432,7 +432,7 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent,
                        ext4fs_dirhash(qstr->name, qstr->len, &hinfo);
                        grp = hinfo.hash;
                } else
-                       get_random_bytes(&grp, sizeof(grp));
+                       grp = prandom_u32();
                parent_group = (unsigned)grp % ngroups;
                for (i = 0; i < ngroups; i++) {
                        g = (parent_group + i) % ngroups;