diff options
-rw-r--r-- | xlators/performance/stat-prefetch/src/stat-prefetch.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c index 28fc719489c..5c881f70a83 100644 --- a/xlators/performance/stat-prefetch/src/stat-prefetch.c +++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c @@ -796,6 +796,11 @@ wind: if (cache) { cache->hits++; } + } else { + if (cache) { + cache->miss++; + } + LOCK (&inode_ctx->lock); { if (!(inode_ctx->looked_up @@ -820,10 +825,6 @@ wind: } local->is_lookup = 1; - } else { - if (cache) { - cache->miss++; - } STACK_WIND (frame, sp_lookup_cbk, FIRST_CHILD(this), FIRST_CHILD(this)->fops->lookup, loc, xattr_req); |