From: John Coyle Date: Thu, 15 Oct 2015 04:15:54 +0000 (-0400) Subject: client: drop prefix from int types X-Git-Tag: v10.0.0~97^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=24740a755df9de987b49bcecefbcb64db2eafd72;p=ceph.git client: drop prefix from int types Signed-off-by: John Coyle dx9err@gmail.com --- diff --git a/src/client/SyntheticClient.cc b/src/client/SyntheticClient.cc index fa92f620f59..736448c26e3 100644 --- a/src/client/SyntheticClient.cc +++ b/src/client/SyntheticClient.cc @@ -2400,7 +2400,7 @@ int SyntheticClient::object_rw(int nobj, int osize, int wrpc, int SyntheticClient::read_random(string& fn, int size, int rdsize) // size is in MB, wrsize in bytes { - __uint64_t chunks = (__uint64_t)size * (__uint64_t)(1024*1024) / (__uint64_t)rdsize; + uint64_t chunks = (uint64_t)size * (uint64_t)(1024*1024) / (uint64_t)rdsize; int fd = client->open(fn.c_str(), O_RDWR); dout(5) << "reading from " << fn << " fd " << fd << dendl; @@ -2478,7 +2478,7 @@ int SyntheticClient::read_random(string& fn, int size, int rdsize) // size is //{ offset=(rand())%(chunks+1); - __uint64_t *p = (__uint64_t*)buf; + uint64_t *p = (uint64_t*)buf; while ((char*)p < buf + rdsize) { *p = offset*rdsize + (char*)p - buf; p++; @@ -2496,11 +2496,11 @@ int SyntheticClient::read_random(string& fn, int size, int rdsize) // size is if ( read ) { int bad = 0; - __int64_t *p = (__int64_t*)buf; - __int64_t readoff, readclient; + int64_t *p = (int64_t*)buf; + int64_t readoff, readclient; while ((char*)p + 32 < buf + rdsize) { readoff = *p; - __int64_t wantoff = offset*rdsize + (__int64_t)((char*)p - buf); + int64_t wantoff = offset*rdsize + (int64_t)((char*)p - buf); p++; readclient = *p; p++; @@ -2573,7 +2573,7 @@ int normdist(int min, int max, int stdev) /* specifies input values */ int SyntheticClient::read_random_ex(string& fn, int size, int rdsize) // size is in MB, wrsize in bytes { - __uint64_t chunks = (__uint64_t)size * (__uint64_t)(1024*1024) / (__uint64_t)rdsize; + uint64_t chunks = (uint64_t)size * (uint64_t)(1024*1024) / (uint64_t)rdsize; int fd = client->open(fn.c_str(), O_RDWR); dout(5) << "reading from " << fn << " fd " << fd << dendl; @@ -2660,7 +2660,7 @@ int SyntheticClient::read_random_ex(string& fn, int size, int rdsize) // size { offset=(rand())%(chunks+1); - __uint64_t *p = (__uint64_t*)buf; + uint64_t *p = (uint64_t*)buf; while ((char*)p < buf + rdsize) { *p = offset*rdsize + (char*)p - buf; p++; @@ -2678,11 +2678,11 @@ int SyntheticClient::read_random_ex(string& fn, int size, int rdsize) // size if ( read ) { int bad = 0; - __int64_t *p = (__int64_t*)buf; - __int64_t readoff, readclient; + int64_t *p = (int64_t*)buf; + int64_t readoff, readclient; while ((char*)p + 32 < buf + rdsize) { readoff = *p; - __int64_t wantoff = offset*rdsize + (__int64_t)((char*)p - buf); + int64_t wantoff = offset*rdsize + (int64_t)((char*)p - buf); p++; readclient = *p; p++; diff --git a/src/client/Trace.h b/src/client/Trace.h index c4a0f9e1532..24145a8b84c 100644 --- a/src/client/Trace.h +++ b/src/client/Trace.h @@ -54,7 +54,7 @@ class Trace { const char *peek_string(char *buf, const char *prefix); const char *get_string(char *buf, const char *prefix); - __int64_t get_int() { + int64_t get_int() { char buf[20]; return atoll(get_string(buf, 0)); }