commit | ecb3403de1efb56f78d9093376aec0a8af76b316 | [log] [tgz] |
---|---|---|
author | Akinobu Mita <[email protected]> | Mon Mar 04 21:58:20 2013 +0900 |
committer | Ben Myers <[email protected]> | Thu Mar 07 12:33:57 2013 -0600 |
tree | 54f0c677d9ff10994b57ad3593241df0c4cbb987 | |
parent | d5929de8337fef46f3e307914ed0f3cb845e66c1 [diff] [blame] |
xfs: rename random32() to prandom_u32() Use more preferable function name which implies using a pseudo-random number generator. Signed-off-by: Akinobu Mita <[email protected]> Acked-by: <[email protected]> Cc: Ben Myers <[email protected]> Cc: Alex Elder <[email protected]> Cc: [email protected] Signed-off-by: Ben Myers <[email protected]>
diff --git a/fs/xfs/xfs_alloc.c b/fs/xfs/xfs_alloc.c index 0ad23253..a8beb5c 100644 --- a/fs/xfs/xfs_alloc.c +++ b/fs/xfs/xfs_alloc.c
@@ -842,7 +842,7 @@ */ int dofirst; /* set to do first algorithm */ - dofirst = random32() & 1; + dofirst = prandom_u32() & 1; #endif restart: