From: Artem Bityutskiy Date: Tue, 17 May 2011 03:25:32 +0000 (+0300) Subject: fs-tests: integck: fsync more often X-Git-Tag: v1.4.5~47 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d7c961cf40667b81973f75277ad5a386811c163c;p=mtd-utils.git 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 --- 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)