diff options
Diffstat (limited to 'xlators/performance/stat-prefetch/src/stat-prefetch.c')
| -rw-r--r-- | xlators/performance/stat-prefetch/src/stat-prefetch.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c index 5062dc18483..2261b8948fb 100644 --- a/xlators/performance/stat-prefetch/src/stat-prefetch.c +++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c @@ -473,6 +473,10 @@ sp_cache_add_entries (sp_cache_t *cache, gf_dirent_t *entries)          LOCK (&cache->lock);          {                  list_for_each_entry (entry, &entries->list, list) { +                        if (S_ISDIR (entry->d_stat.st_mode)) { +                                continue; +                        } +                          new = gf_dirent_for_name (entry->d_name);                          if (new == NULL) {                                  goto unlock;  | 
