From ba5ade87b2fe5a3c4a4153f0d5a8f73eb04048aa Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 1 Dec 2014 09:18:31 +0000 Subject: [PATCH] ensure the backing store write reports at least a minimal amount of time --- content/llcache.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/llcache.c b/content/llcache.c index fb3d71661..e12273ee1 100644 --- a/content/llcache.c +++ b/content/llcache.c @@ -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; }