From 599f1546df204bad99b62d1bb317a810d700484f Mon Sep 17 00:00:00 2001 From: Akinobu Mita Date: Mon, 4 Mar 2013 21:58:20 +0900 Subject: [PATCH] --- yaml --- r: 371039 b: refs/heads/master c: ecb3403de1efb56f78d9093376aec0a8af76b316 h: refs/heads/master i: 371037: 48a97a36cac224b223f1269ff4a0ed871456424d 371035: 4792b251c4ebd71ceeaaa0535c82115b46abfecf 371031: b8b37a87c8b96001272abfe7d6a01da40a43e623 371023: 4484777615a3798c616b086d308e4cf6cfdd4f65 371007: fe0e07104ad75e5aa8c6faa47edef7b142e63ae5 v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_alloc.c | 2 +- trunk/fs/xfs/xfs_error.c | 2 +- trunk/fs/xfs/xfs_ialloc.c | 2 +- trunk/fs/xfs/xfs_log.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 522532cbf139..622f0f821678 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d5929de8337fef46f3e307914ed0f3cb845e66c1 +refs/heads/master: ecb3403de1efb56f78d9093376aec0a8af76b316 diff --git a/trunk/fs/xfs/xfs_alloc.c b/trunk/fs/xfs/xfs_alloc.c index 0ad23253e8b1..a8beb5c7dd60 100644 --- a/trunk/fs/xfs/xfs_alloc.c +++ b/trunk/fs/xfs/xfs_alloc.c @@ -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: diff --git a/trunk/fs/xfs/xfs_error.c b/trunk/fs/xfs/xfs_error.c index 610456054dc2..07bf3b9815f5 100644 --- a/trunk/fs/xfs/xfs_error.c +++ b/trunk/fs/xfs/xfs_error.c @@ -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)); diff --git a/trunk/fs/xfs/xfs_ialloc.c b/trunk/fs/xfs/xfs_ialloc.c index 515bf71ce01c..ba626613bf49 100644 --- a/trunk/fs/xfs/xfs_ialloc.c +++ b/trunk/fs/xfs/xfs_ialloc.c @@ -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; diff --git a/trunk/fs/xfs/xfs_log.c b/trunk/fs/xfs/xfs_log.c index eec226f78a40..b345a7c85153 100644 --- a/trunk/fs/xfs/xfs_log.c +++ b/trunk/fs/xfs/xfs_log.c @@ -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;