diff options
Diffstat (limited to 'xlators/performance')
| -rw-r--r-- | xlators/performance/io-cache/src/io-cache.c | 6 | ||||
| -rw-r--r-- | xlators/performance/nl-cache/src/nl-cache-helper.c | 2 | ||||
| -rw-r--r-- | xlators/performance/readdir-ahead/src/readdir-ahead.c | 2 | 
3 files changed, 5 insertions, 5 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index 4757c1ccd27..95ba2e19b9e 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -2105,9 +2105,9 @@ ioc_priv_dump(xlator_t *this)      if (ret)          goto out;      { -        gf_proc_dump_write("page_size", "%ld", priv->page_size); -        gf_proc_dump_write("cache_size", "%ld", priv->cache_size); -        gf_proc_dump_write("cache_used", "%ld", priv->cache_used); +        gf_proc_dump_write("page_size", "%" PRIu64, priv->page_size); +        gf_proc_dump_write("cache_size", "%" PRIu64, priv->cache_size); +        gf_proc_dump_write("cache_used", "%" PRIu64, priv->cache_used);          gf_proc_dump_write("inode_count", "%u", priv->inode_count);          gf_proc_dump_write("cache_timeout", "%u", priv->cache_timeout);          gf_proc_dump_write("min-file-size", "%" PRIu64, priv->min_file_size); diff --git a/xlators/performance/nl-cache/src/nl-cache-helper.c b/xlators/performance/nl-cache/src/nl-cache-helper.c index f2c9bcdfb04..009f33ae38d 100644 --- a/xlators/performance/nl-cache/src/nl-cache-helper.c +++ b/xlators/performance/nl-cache/src/nl-cache-helper.c @@ -1176,7 +1176,7 @@ nlc_dump_inodectx(xlator_t *this, inode_t *inode)          gf_proc_dump_write("state", "%" PRIu64, nlc_ctx->state);          gf_proc_dump_write("timer", "%p", nlc_ctx->timer); -        gf_proc_dump_write("cache-time", "%" GF_PRI_TIME, nlc_ctx->cache_time); +        gf_proc_dump_write("cache-time", "%ld", nlc_ctx->cache_time);          gf_proc_dump_write("cache-size", "%zu", nlc_ctx->cache_size);          gf_proc_dump_write("refd-inodes", "%" PRIu64, nlc_ctx->refd_inodes); diff --git a/xlators/performance/readdir-ahead/src/readdir-ahead.c b/xlators/performance/readdir-ahead/src/readdir-ahead.c index 7ae5719e8e7..36835473f15 100644 --- a/xlators/performance/readdir-ahead/src/readdir-ahead.c +++ b/xlators/performance/readdir-ahead/src/readdir-ahead.c @@ -223,7 +223,7 @@ rda_mark_inode_dirty(xlator_t *this, inode_t *inode)                  if (val == 0)                      continue; -                fd_ctx = (void *)val; +                fd_ctx = (void *)(uintptr_t)val;                  uuid_utoa_r(inode->gfid, gfid);                  if (!GF_ATOMIC_GET(fd_ctx->prefetching))                      continue;  | 
