[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:
Joe Perches 2007-05-08 13:49:03 +10:00 committed by Tim Shimmin
parent e9ed9d2240
commit e7a23a9b37
4 changed files with 3 additions and 20 deletions

View file

@ -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.