]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: drop prefix from int types 6275/head
authorJohn Coyle <dx9err@gmail.com>
Thu, 15 Oct 2015 04:15:54 +0000 (00:15 -0400)
committerJohn Coyle <dx9err@gmail.com>
Thu, 15 Oct 2015 04:15:54 +0000 (00:15 -0400)
Signed-off-by: John Coyle dx9err@gmail.com
src/client/SyntheticClient.cc
src/client/Trace.h

index fa92f620f598c3a29c15f2245330e2bd8df80a3f..736448c26e3eadbffba9c4599e162e13b5ede54d 100644 (file)
@@ -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++;
index c4a0f9e1532c9755fa099056ca15de33a9fb2b23..24145a8b84c7a60f69d9bc77e0fc98040f874728 100644 (file)
@@ -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));
   }