mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
[XFS] reducing the number of random number functions.
Patch provided by Joe Perches SGI-PV: 961696 SGI-Modid: xfs-linux-melb:xfs-kern:28209a Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
This commit is contained in:
parent
e9ed9d2240
commit
e7a23a9b37
4 changed files with 3 additions and 20 deletions
|
@ -764,7 +764,7 @@ xfs_alloc_ag_vextent_near(
|
|||
*/
|
||||
int dofirst; /* set to do first algorithm */
|
||||
|
||||
dofirst = random() & 1;
|
||||
dofirst = random32() & 1;
|
||||
#endif
|
||||
/*
|
||||
* Get a cursor for the by-size btree.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue