Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371039
b: refs/heads/master
c: ecb3403
h: refs/heads/master
i:
  371037: 48a97a3
  371035: 4792b25
  371031: b8b37a8
  371023: 4484777
  371007: fe0e071
v: v3
  • Loading branch information
Akinobu Mita authored and Ben Myers committed Mar 7, 2013
1 parent 3876bd1 commit 599f154
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d5929de8337fef46f3e307914ed0f3cb845e66c1
refs/heads/master: ecb3403de1efb56f78d9093376aec0a8af76b316
2 changes: 1 addition & 1 deletion trunk/fs/xfs/xfs_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ xfs_alloc_ag_vextent_near(
*/
int dofirst; /* set to do first algorithm */

dofirst = random32() & 1;
dofirst = prandom_u32() & 1;
#endif

restart:
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/xfs/xfs_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ xfs_error_test(int error_tag, int *fsidp, char *expression,
int i;
int64_t fsid;

if (random32() % randfactor)
if (prandom_u32() % randfactor)
return 0;

memcpy(&fsid, fsidp, sizeof(xfs_fsid_t));
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/xfs/xfs_ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ xfs_ialloc_ag_alloc(
* number from being easily guessable.
*/
error = xfs_ialloc_inode_init(args.mp, tp, agno, args.agbno,
args.len, random32());
args.len, prandom_u32());

if (error)
return error;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/xfs/xfs_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -3485,7 +3485,7 @@ xlog_ticket_alloc(
tic->t_curr_res = unit_bytes;
tic->t_cnt = cnt;
tic->t_ocnt = cnt;
tic->t_tid = random32();
tic->t_tid = prandom_u32();
tic->t_clientid = client;
tic->t_flags = XLOG_TIC_INITED;
tic->t_trans_type = 0;
Expand Down

0 comments on commit 599f154

Please sign in to comment.