diff options
| author | Akinobu Mita <[email protected]> | 2013-01-03 12:19:09 +0000 |
|---|---|---|
| committer | Artem Bityutskiy <[email protected]> | 2013-01-15 13:45:27 +0000 |
| commit | 3d251a5b9e2f09edcf25bbffe1fa308d0f648bf1 (patch) | |
| tree | b50e9be66c5b0f0c3e7cbbf321cb737f7d999bdf /fs/ubifs/tnc_commit.c | |
| parent | Linux 3.8-rc3 (diff) | |
| download | kernel-3d251a5b9e2f09edcf25bbffe1fa308d0f648bf1.tar.gz kernel-3d251a5b9e2f09edcf25bbffe1fa308d0f648bf1.zip | |
UBIFS: 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]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Diffstat (limited to 'fs/ubifs/tnc_commit.c')
| -rw-r--r-- | fs/ubifs/tnc_commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/tnc_commit.c b/fs/ubifs/tnc_commit.c index 523bbad69c0c..52a6559275c4 100644 --- a/fs/ubifs/tnc_commit.c +++ b/fs/ubifs/tnc_commit.c @@ -683,7 +683,7 @@ static int alloc_idx_lebs(struct ubifs_info *c, int cnt) c->ilebs[c->ileb_cnt++] = lnum; dbg_cmt("LEB %d", lnum); } - if (dbg_is_chk_index(c) && !(random32() & 7)) + if (dbg_is_chk_index(c) && !(prandom_u32() & 7)) return -ENOSPC; return 0; } |
