diff options
Diffstat (limited to 'xlators/performance')
-rw-r--r-- | xlators/performance/stat-prefetch/src/stat-prefetch.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c index 0adfded8d87..dee52e8c6af 100644 --- a/xlators/performance/stat-prefetch/src/stat-prefetch.c +++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c @@ -593,7 +593,18 @@ sp_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xattr_req) lookup_behind = 1; } } - } + } else if (S_ISDIR (loc->inode->st_mode)) { + cache = sp_get_cache_inode (this, loc->inode, frame->root->pid); + if (cache) { + ret = sp_cache_get_entry (cache, ".", &dirent); + if (ret == 0) { + buf = &dirent.d_stat; + op_ret = 0; + op_errno = 0; + lookup_behind = 1; + } + } + } wind: if (lookup_behind) { |