- Move INVALID_NUMBERIO to the verify-state.h to make it accessible to
t/verify-state.c
- Make unused inflight I/O slots more obvious
Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
#define MAX_TRIM_RANGE 256
-#define INVALID_NUMBERIO UINT64_MAX
-
/*
* Range for trim command
*/
if (!s->depth)
return;
for (i = s->depth - 1; i >= 0; i--) {
- printf("\t%llu\n",
- (unsigned long long) s->inflight[i].numberio);
+ uint64_t numberio;
+ numberio = s->inflight[i].numberio;
+ if (numberio == INVALID_NUMBERIO)
+ printf("\tNot inflight\n");
+ else
+ printf("\t%llu\n",
+ (unsigned long long) s->inflight[i].numberio);
}
}
out[size - 1] = '\0';
}
+#define INVALID_NUMBERIO UINT64_MAX
+
#endif