UBIFS: rename random32() to prandom_u32()
[cascardo/linux.git] / fs / ubifs / tnc_commit.c
index 523bbad..52a6559 100644 (file)
@@ -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;
 }