From d7c961cf40667b81973f75277ad5a386811c163c Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 17 May 2011 06:25:32 +0300 Subject: fs-tests: integck: fsync more often Currently integck calls 'fsync()' very rarely - with 0.1% probability. Make this happen more often - with 1% probability. Signed-off-by: Artem Bityutskiy --- tests/fs-tests/integrity/integck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c index 221bd49..81d384f 100644 --- a/tests/fs-tests/integrity/integck.c +++ b/tests/fs-tests/integrity/integck.c @@ -1269,7 +1269,7 @@ static int file_write(struct file_info *file, int fd) } /* Sync sometimes */ - if (random_no(1000) >= 999) { + if (random_no(100) >= 99) { if (random_no(100) >= 50) { ret = fsync(fd); if (ret) -- cgit v1.2.3