Turns out they were flushes. Get rid of the check and turn it into
an assert.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
rw = (t->action & BLK_TC_ACT(BLK_TC_WRITE)) != 0;
rw = (t->action & BLK_TC_ACT(BLK_TC_WRITE)) != 0;
- /*
- * Need to figure out why 0 byte writes end up here sometimes, for
- * now just ignore them.
- */
- if (!t->bytes)
- return;
- else if (t->bytes > rw_bs[rw])
+ assert(t->bytes);
+
+ if (t->bytes > rw_bs[rw])
rw_bs[rw] = t->bytes;
ios[rw]++;
rw_bs[rw] = t->bytes;
ios[rw]++;