X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=verify.c;h=42ea462f0cf656d18a47e404e8d13a13a8dbd0ab;hp=098c19bcafc38d7f5e994ac80acec566245b660d;hb=10e8a7b30ce2917df9f839d42596c7e3af9a904f;hpb=808def7036ddfaf6f0ec2f5ecce031fd46ce40ef diff --git a/verify.c b/verify.c index 098c19bc..42ea462f 100644 --- a/verify.c +++ b/verify.c @@ -30,22 +30,19 @@ void fill_pattern(struct thread_data *td, void *p, unsigned int len, struct io_u fill_random_buf(p, len); break; case 1: - if ((io_u->flags & IO_U_F_FILLED) && - io_u->buf_filled_len >= len) { + if (io_u->buf_filled_len >= len) { dprint(FD_VERIFY, "using already filled verify pattern b=0 len=%u\n", len); return; } dprint(FD_VERIFY, "fill verify pattern b=0 len=%u\n", len); memset(p, td->o.verify_pattern[0], len); - io_u->flags |= IO_U_F_FILLED; io_u->buf_filled_len = len; break; default: { unsigned int i = 0, size = 0; unsigned char *b = p; - if ((io_u->flags & IO_U_F_FILLED) && - io_u->buf_filled_len >= len) { + if (io_u->buf_filled_len >= len) { dprint(FD_VERIFY, "using already filled verify pattern b=%d len=%u\n", td->o.verify_pattern_bytes, len); return; @@ -60,7 +57,6 @@ void fill_pattern(struct thread_data *td, void *p, unsigned int len, struct io_u memcpy(b+i, td->o.verify_pattern, size); i += size; } - io_u->flags |= IO_U_F_FILLED; io_u->buf_filled_len = len; break; }