ensure the backing store write reports at least a minimal amount of time

This commit is contained in:
Vincent Sanders 2014-12-01 09:18:31 +00:00
parent ca74e0060d
commit ba5ade87b2

View File

@ -2368,6 +2368,13 @@ write_backing_store(struct llcache_object *object,
*/
*elapsed = endms - startms;
/* ensure the writeout is reported to have taken at least the
* minimal amount of time
*/
if (*elapsed == 0) {
*elapsed = 1;
}
return NSERROR_OK;
}