summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/tnc_commit.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2013-01-03 13:19:09 +0100
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-01-15 14:45:27 +0100
commit3d251a5b9e2f09edcf25bbffe1fa308d0f648bf1 (patch)
treeb50e9be66c5b0f0c3e7cbbf321cb737f7d999bdf /fs/ubifs/tnc_commit.c
parentLinux 3.8-rc3 (diff)
downloadlinux-3d251a5b9e2f09edcf25bbffe1fa308d0f648bf1.tar.xz
linux-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 <akinobu.mita@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs/tnc_commit.c')
-rw-r--r--fs/ubifs/tnc_commit.c2
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;
}