]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
less typedef
authorSage Weil <sage@newdream.net>
Fri, 21 Dec 2007 00:29:12 +0000 (16:29 -0800)
committerSage Weil <sage@newdream.net>
Fri, 21 Dec 2007 00:29:12 +0000 (16:29 -0800)
15 files changed:
src/client/SyntheticClient.cc
src/include/ceph_fs.h
src/include/object.h
src/include/types.h
src/kernel/osd_client.h
src/messages/MOSDOp.h
src/mon/MonMap.h
src/osd/OSD.cc
src/osd/OSDMap.h
src/osd/RAID4PG.cc
src/osd/ReplicatedPG.cc
src/osd/osd_types.h
src/osdc/ObjectCacher.h
src/osdc/Objecter.cc
src/osdc/Objecter.h

index c33265512fb12454715ae41c57e7732e5a6bf904..8cd41a598bf44e80c25bc0ccd4e12dab91ef5ac5 100644 (file)
@@ -1258,7 +1258,7 @@ int SyntheticClient::play_trace(Trace& t, string& prefix, bool metadata_only)
       int64_t ol = t.get_int();
       object_t oid(oh, ol);
       lock.Lock();
-      ceph_object_layout_t layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, 2);
+      ceph_object_layout layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, 2);
       off_t size;
       client->objecter->stat(oid, &size, layout, new C_SafeCond(&lock, &cond, &ack));
       while (!ack) cond.Wait(lock);
@@ -1271,7 +1271,7 @@ int SyntheticClient::play_trace(Trace& t, string& prefix, bool metadata_only)
       int64_t len = t.get_int();
       object_t oid(oh, ol);
       lock.Lock();
-      ceph_object_layout_t layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, 2);
+      ceph_object_layout layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, 2);
       bufferlist bl;
       client->objecter->read(oid, off, len, layout, &bl, new C_SafeCond(&lock, &cond, &ack));
       while (!ack) cond.Wait(lock);
@@ -1284,7 +1284,7 @@ int SyntheticClient::play_trace(Trace& t, string& prefix, bool metadata_only)
       int64_t len = t.get_int();
       object_t oid(oh, ol);
       lock.Lock();
-      ceph_object_layout_t layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, 2);
+      ceph_object_layout layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, 2);
       bufferptr bp(len);
       bufferlist bl;
       bl.push_back(bp);
@@ -1301,7 +1301,7 @@ int SyntheticClient::play_trace(Trace& t, string& prefix, bool metadata_only)
       int64_t len = t.get_int();
       object_t oid(oh, ol);
       lock.Lock();
-      ceph_object_layout_t layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, 2);
+      ceph_object_layout layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, 2);
       client->objecter->zero(oid, off, len, layout, 
                             new C_SafeCond(&lock, &cond, &ack),
                             safeg->new_sub());
@@ -1943,7 +1943,7 @@ int SyntheticClient::create_objects(int nobj, int osize, int inflight)
     if (time_to_stop()) break;
 
     object_t oid(0x1000, i);
-    ceph_object_layout_t layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, g_OSD_FileLayout.fl_pg_size);
+    ceph_object_layout layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, g_OSD_FileLayout.fl_pg_size);
     
     if (i % inflight == 0) {
       dout(6) << "create_objects " << i << "/" << (nobj+1) << dendl;
@@ -2045,7 +2045,7 @@ int SyntheticClient::object_rw(int nobj, int osize, int wrpc,
     }
     object_t oid(0x1000, o);
 
-    ceph_object_layout_t layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, g_OSD_FileLayout.fl_pg_size);
+    ceph_object_layout layout = client->osdmap->make_object_layout(oid, pg_t::TYPE_REP, g_OSD_FileLayout.fl_pg_size);
     
     client->client_lock.Lock();
     utime_t start = g_clock.now();
index df10567e815a30d9210136faec46ae7b3c9e11bd..efd51d39b69b77de8d3cae3288f3c25d5256601f 100644 (file)
@@ -28,9 +28,8 @@ struct ceph_fsid {
        __u64 major;
        __u64 minor;
 };
-typedef struct ceph_fsid ceph_fsid_t;
 
-static inline int ceph_fsid_equal(const ceph_fsid_t *a, const ceph_fsid_t *b) {
+static inline int ceph_fsid_equal(const struct ceph_fsid *a, const struct ceph_fsid *b) {
        return a->major == b->major && a->minor == b->minor;
 }
 
@@ -45,7 +44,6 @@ struct ceph_object {
        __u32 bno;  /* "block" (object) in that "file" */
        __u32 rev;  /* revision.  normally ctime (as epoch). */
 };
-typedef struct ceph_object ceph_object_t;
 
 #define CEPH_INO_ROOT 1
 
@@ -119,7 +117,6 @@ union ceph_pg {
                __u8 size;
        } pg;
 };
-typedef union ceph_pg ceph_pg_t;
 
 #define ceph_pg_is_rep(pg)   (pg.pg.type == CEPH_PG_TYPE_REP)
 #define ceph_pg_is_raid4(pg) (pg.pg.type == CEPH_PG_TYPE_RAID4)
@@ -128,10 +125,9 @@ typedef union ceph_pg ceph_pg_t;
  * object layout - how a given object should be stored.
  */
 struct ceph_object_layout {
-       ceph_pg_t pgid;
-       __u32     stripe_unit;  
+       union ceph_pg pgid;
+       __u32         stripe_unit;  
 } __attribute__ ((packed));
-typedef struct ceph_object_layout ceph_object_layout_t;
 
 /*
  * compound epoch+version, used by rados to serialize mutations
@@ -140,7 +136,6 @@ struct ceph_eversion {
        ceph_epoch_t epoch;
        __u64        version;
 } __attribute__ ((packed));
-typedef struct ceph_eversion ceph_eversion_t;
 
 /*
  * osd map bits
@@ -426,7 +421,6 @@ struct ceph_osd_peer_stat {
        float frac_rd_ops_shed_in;
        float frac_rd_ops_shed_out;
 } __attribute__ ((packed));
-typedef struct ceph_osd_peer_stat ceph_osd_peer_stat_t;
 
 struct ceph_osd_request_head {
        struct ceph_entity_inst   client_inst;
@@ -434,29 +428,29 @@ struct ceph_osd_request_head {
        __u32                     client_inc;
        __u32                     op;
        __u64                     offset, length;
-       ceph_object_t             oid;
-       ceph_object_layout_t      layout;
+       struct ceph_object        oid;
+       struct ceph_object_layout  layout;
        ceph_epoch_t              osdmap_epoch;
 
        __u32                     flags;
 
-       ceph_eversion_t           reassert_version;
+       struct ceph_eversion      reassert_version;
 
        /* semi-hack, fix me */
-       __u32                shed_count;
-       ceph_osd_peer_stat_t peer_stat;
+       __u32                     shed_count;
+       struct ceph_osd_peer_stat peer_stat;
 } __attribute__ ((packed));
 
 struct ceph_osd_reply_head {
        ceph_tid_t           tid;
        __u32                op;
        __u32                flags;
-       ceph_object_t        oid;
-       ceph_object_layout_t layout;
+       struct ceph_object   oid;
+       struct ceph_object_layout layout;
        ceph_epoch_t         osdmap_epoch;
        __s32                result;
        __u64                offset, length;
-       ceph_eversion_t      reassert_version;
+       struct ceph_eversion reassert_version;
 } __attribute__ ((packed));
 
 #endif
index 9153bd951b8dc51aa6f5ec53358fb443967aa61c..f1b247b01681e80b05a6b24f654a95f321656d8a 100644 (file)
@@ -47,8 +47,8 @@ struct object_t {
     bno = co.bno;
     rev = co.rev;
   }  
-  operator ceph_object_t() {
-    ceph_object_t oid;
+  operator ceph_object() {
+    ceph_object oid;
     oid.ino = ino;
     oid.bno = bno;
     oid.rev = rev;
index 0752db3360e3e5aef0125c68df487fe56fc97182..020a5e7e52d21006365351617cedb662bdf1b77b 100644 (file)
@@ -224,7 +224,7 @@ struct inode_t {
 
 // --
 
-inline ostream& operator<<(ostream& out, ceph_fsid_t& f) {
+inline ostream& operator<<(ostream& out, ceph_fsid& f) {
   return out << hex << f.major << '.' << f.minor << dec;
 }
 
index 3f554ad9070001abc65db02a8c9d70a18551e397..47291ed64a5570e3d6dd3f3ae4669d82632c834c 100644 (file)
@@ -40,7 +40,7 @@ struct ceph_osd_request {
 
 struct ceph_osd_client {
        spinlock_t             lock;
-       struct ceph_client      *client;
+       struct ceph_client     *client;
        struct ceph_osdmap     *osdmap;       /* current map */
        __u64                  last_requested_map;
        __u64                  last_tid;      /* tid of last request */
index 3ce6071fcf240144fe255f9813c9efd8d5905bb0..c7c16d067dbd8d02f147a20e942f1ff5a454ff57 100644 (file)
@@ -76,7 +76,7 @@ public:
 
   object_t get_oid() { return object_t(head.oid); }
   pg_t     get_pg() { return head.layout.pgid; }
-  ceph_object_layout_t get_layout() { return head.layout; }
+  ceph_object_layout get_layout() { return head.layout; }
   epoch_t  get_map_epoch() { return head.osdmap_epoch; }
 
   eversion_t get_version() { return head.reassert_version; }
@@ -94,7 +94,7 @@ public:
   void set_attrset(map<string,bufferptr> &as) { attrset.swap(as); }
 
   void set_peer_stat(const osd_peer_stat_t& stat) { head.peer_stat = stat; }
-  const ceph_osd_peer_stat_t& get_peer_stat() { return head.peer_stat; }
+  const ceph_osd_peer_stat& get_peer_stat() { return head.peer_stat; }
 
   void inc_shed_count() { head.shed_count++; }
   int get_shed_count() { return head.shed_count; }
@@ -102,7 +102,7 @@ public:
 
 
   MOSDOp(entity_inst_t asker, int inc, long tid,
-         object_t oid, ceph_object_layout_t ol, epoch_t mapepoch, int op) :
+         object_t oid, ceph_object_layout ol, epoch_t mapepoch, int op) :
     Message(CEPH_MSG_OSD_OP) {
     memset(&head, 0, sizeof(head));
     head.client_inst.name = asker.name.v;
@@ -118,7 +118,7 @@ public:
   }
   MOSDOp() {}
 
-  void set_layout(const ceph_object_layout_t& l) { head.layout = l; }
+  void set_layout(const ceph_object_layout& l) { head.layout = l; }
 
   void set_length(off_t l) { head.length = l; }
   void set_offset(off_t o) { head.offset = o; }
index f8adebd3f405da4c2da84a23888b640fbfb1304b..acfaa69c886bb5ecf2961de1d1b90676158713c1 100644 (file)
@@ -25,7 +25,7 @@
 class MonMap {
  public:
   epoch_t epoch;       // what epoch/version of the monmap
-  ceph_fsid_t fsid;
+  ceph_fsid fsid;
   vector<entity_inst_t> mon_inst;
 
   int       last_mon;    // last mon i talked to
index c2c2c8dd967ca0e2cab550d3dce194cd043089cd..2c4b708ff0a6e86e04d1aa4a69b413648335f67e 100644 (file)
@@ -1324,7 +1324,7 @@ void OSD::advance_map(ObjectStore::Transaction& t)
 
     // is this okay?
     assert(superblock.current_epoch == 2);
-    ceph_fsid_t nullfsid;
+    ceph_fsid nullfsid;
     memset(&nullfsid, 0, sizeof(nullfsid));
     if (memcmp(&nullfsid, &superblock.fsid, sizeof(nullfsid)) != 0) {
       derr(0) << "will not mkfs, my superblock fsid is not zeroed" << dendl;
index 17ee4f20c5322566c43d1c3abd63c53ce4cf36ec..0252f0444be677e74b0d7ef8d7c63c1e31528572 100644 (file)
@@ -83,7 +83,7 @@ class OSDMap {
 public:
   class Incremental {
   public:
-    ceph_fsid_t fsid;
+    ceph_fsid fsid;
     epoch_t epoch;   // new epoch; we are a diff from epoch-1 to epoch
     epoch_t mon_epoch;  // monitor epoch (election iteration)
     utime_t ctime;
@@ -135,7 +135,7 @@ public:
   };
 
 private:
-  ceph_fsid_t fsid;
+  ceph_fsid fsid;
   epoch_t epoch;       // what epoch of the osd cluster descriptor is this
   epoch_t mon_epoch;  // monitor epoch (election iteration)
   utime_t ctime, mtime;       // epoch start time
@@ -165,8 +165,8 @@ private:
   }
 
   // map info
-  ceph_fsid_t& get_fsid() { return fsid; }
-  void set_fsid(ceph_fsid_t& f) { fsid = f; }
+  ceph_fsid& get_fsid() { return fsid; }
+  void set_fsid(ceph_fsid& f) { fsid = f; }
 
   epoch_t get_epoch() const { return epoch; }
   void inc_epoch() { epoch++; }
@@ -387,11 +387,11 @@ private:
   /****   mapping facilities   ****/
 
   // oid -> pg
-  ceph_object_layout_t file_to_object_layout(object_t oid, FileLayout& layout) {
+  ceph_object_layout file_to_object_layout(object_t oid, FileLayout& layout) {
     return make_object_layout(oid, layout.fl_pg_type, layout.fl_pg_size, layout.fl_pg_preferred, layout.fl_object_stripe_unit);
   }
 
-  ceph_object_layout_t make_object_layout(object_t oid, int pg_type, int pg_size, int preferred=-1, int object_stripe_unit = 0) {
+  ceph_object_layout make_object_layout(object_t oid, int pg_type, int pg_size, int preferred=-1, int object_stripe_unit = 0) {
     int num = preferred >= 0 ? localized_pg_num:pg_num;
     int num_mask = preferred >= 0 ? localized_pg_num_mask:pg_num_mask;
 
@@ -422,7 +422,7 @@ private:
 
     // construct object layout
     pg_t pgid = pg_t(pg_type, pg_size, ps, preferred);
-    ceph_object_layout_t layout;
+    ceph_object_layout layout;
     layout.pgid = pgid.u;
     layout.stripe_unit = object_stripe_unit;
     return layout;
index d882fd3ff095bade3337df2363878a9507be8ada..165dca1726935dd9dbf3cff808f9177c45c7f016 100644 (file)
@@ -42,7 +42,7 @@ void RAID4PG::do_op(MOSDOp *op)
   // a write will do something like
   object_t oid = op->get_oid();   // logical object
   pg_t pg = op->get_pg();
-  ceph_object_layout_t layout = op->get_layout();
+  ceph_object_layout layout = op->get_layout();
   bufferlist data = op->get_data();
   off_t off = op->get_offset();
   off_t left = op->get_length();
index 7b48093739b7014468298f5d2936f024c5a2add7..7309b8f6de94a0a16bfade3295a558bf87a5e777 100644 (file)
@@ -153,7 +153,7 @@ bool ReplicatedPG::preprocess_op(MOSDOp *op, utime_t now)
          balancing_reads.count(oid) == 0) {
        dout(-10) << "preprocess_op balance-reads on " << oid << dendl;
        balancing_reads.insert(oid);
-       ceph_object_layout_t layout;
+       ceph_object_layout layout;
        layout.pgid = info.pgid.u;
        layout.stripe_unit = 0;
        MOSDOp *pop = new MOSDOp(osd->messenger->get_myinst(), 0, osd->get_tid(),
@@ -167,7 +167,7 @@ bool ReplicatedPG::preprocess_op(MOSDOp *op, utime_t now)
          !unbalancing_reads.count(oid) == 0) {
        dout(-10) << "preprocess_op unbalance-reads on " << oid << dendl;
        unbalancing_reads.insert(oid);
-       ceph_object_layout_t layout;
+       ceph_object_layout layout;
        layout.pgid = info.pgid.u;
        layout.stripe_unit = 0;
        MOSDOp *pop = new MOSDOp(osd->messenger->get_myinst(), 0, osd->get_tid(),
@@ -1130,7 +1130,7 @@ void ReplicatedPG::op_modify(MOSDOp *op)
       dout(-10) << "preprocess_op unbalancing-reads on " << op->get_oid() << dendl;
       unbalancing_reads.insert(op->get_oid());
       
-      ceph_object_layout_t layout;
+      ceph_object_layout layout;
       layout.pgid = info.pgid.u;
       layout.stripe_unit = 0;
       MOSDOp *pop = new MOSDOp(osd->messenger->get_myinst(), 0, osd->get_tid(),
index 08de55b59e871adfbc9742059ce9d05eb493e877..723d58b982c679146716a2c66127e3c6f65a0ff8 100644 (file)
@@ -98,7 +98,7 @@ public:
     assert(sizeof(u.pg) == sizeof(u.pg64));
   }
   pg_t(uint64_t v) { u.pg64 = v; }
-  pg_t(const ceph_pg_t& cpg) {
+  pg_t(const ceph_pg& cpg) {
     u = cpg;
   }
 
@@ -163,7 +163,7 @@ namespace __gnu_cxx {
 
 
 
-inline ostream& operator<<(ostream& out, const ceph_object_layout_t &ol)
+inline ostream& operator<<(ostream& out, const ceph_object_layout &ol)
 {
   out << "pg" << ol.pgid;
   if (ol.stripe_unit)
@@ -182,8 +182,8 @@ public:
   eversion_t(epoch_t e, version_t v) : epoch(e), version(v) {}
 
   eversion_t(const ceph_eversion& ce) : epoch(ce.epoch), version(ce.version) {}    
-  operator ceph_eversion_t() {
-    ceph_eversion_t c;
+  operator ceph_eversion() {
+    ceph_eversion c;
     c.epoch = epoch;
     c.version = version;
     return c;
@@ -260,7 +260,7 @@ class ObjectExtent {
   off_t       start;     // in object
   size_t      length;    // in object
 
-  ceph_object_layout_t layout;   // object layout (pgid, etc.)
+  ceph_object_layout layout;   // object layout (pgid, etc.)
 
   map<size_t, size_t>  buffer_extents;  // off -> len.  extents in buffer being mapped (may be fragmented bc of striping!)
   
@@ -284,7 +284,7 @@ class OSDSuperblock {
 public:
   const static uint64_t MAGIC = 0xeb0f505dULL;
   uint64_t magic;
-  ceph_fsid_t fsid;
+  ceph_fsid fsid;
   int32_t whoami;    // my role in this fs.
   epoch_t current_epoch;             // most recent epoch
   epoch_t oldest_map, newest_map;    // oldest/newest maps we have.
index 4a7c5d42fd365f1ba95d62637a616289f0be74f6..7d300da70f4709a5a3d8992047ffc0b07fd54444 100644 (file)
@@ -101,7 +101,7 @@ class ObjectCacher {
     object_t  oid;   // this _always_ is oid.rev=0
     inodeno_t ino;
     objectrev_t rev; // last rev we're written
-    ceph_object_layout_t layout;
+    ceph_object_layout layout;
     
   public:
     map<off_t, BufferHead*>     data;
@@ -130,7 +130,7 @@ class ObjectCacher {
     int rdlock_ref;  // how many ppl want or are using a READ lock
 
   public:
-    Object(ObjectCacher *_oc, object_t o, inodeno_t i, ceph_object_layout_t& l) : 
+    Object(ObjectCacher *_oc, object_t o, inodeno_t i, ceph_object_layout& l) : 
       oc(_oc),
       oid(o), ino(i), layout(l),
       last_write_tid(0), last_ack_tid(0), last_commit_tid(0),
@@ -143,8 +143,8 @@ class ObjectCacher {
     object_t get_oid() { return oid; }
     inodeno_t get_ino() { return ino; }
 
-       ceph_object_layout_t& get_layout() { return layout; }
-       void set_layout(ceph_object_layout_t& l) { layout = l; }
+       ceph_object_layout& get_layout() { return layout; }
+       void set_layout(ceph_object_layout& l) { layout = l; }
 
     bool can_close() {
       return data.empty() && lock_state == LOCK_NONE &&
@@ -227,7 +227,7 @@ class ObjectCacher {
   
 
   // objects
-  Object *get_object(object_t oid, inodeno_t ino, ceph_object_layout_t &l) {
+  Object *get_object(object_t oid, inodeno_t ino, ceph_object_layout &l) {
     // have it?
     if (objects.count(oid))
       return objects[oid];
index 99a16d32c8da781678bafa7b186c00ca1750bf83..1ae785fc78444039e9ce6c530527d6e2c03402c7 100644 (file)
@@ -320,7 +320,7 @@ void Objecter::handle_osd_op_reply(MOSDOpReply *m)
 
 // stat -----------------------------------
 
-tid_t Objecter::stat(object_t oid, off_t *size, ceph_object_layout_t ol, Context *onfinish)
+tid_t Objecter::stat(object_t oid, off_t *size, ceph_object_layout ol, Context *onfinish)
 {
   OSDStat *st = new OSDStat(size);
   st->extents.push_back(ObjectExtent(oid, 0, 0));
@@ -422,7 +422,7 @@ void Objecter::handle_osd_stat_reply(MOSDOpReply *m)
 // read -----------------------------------
 
 
-tid_t Objecter::read(object_t oid, off_t off, size_t len, ceph_object_layout_t ol, bufferlist *bl,
+tid_t Objecter::read(object_t oid, off_t off, size_t len, ceph_object_layout ol, bufferlist *bl,
                      Context *onfinish)
 {
   OSDRead *rd = new OSDRead(bl);
@@ -660,7 +660,7 @@ void Objecter::handle_osd_read_reply(MOSDOpReply *m)
 
 // write ------------------------------------
 
-tid_t Objecter::write(object_t oid, off_t off, size_t len, ceph_object_layout_t ol, bufferlist &bl, 
+tid_t Objecter::write(object_t oid, off_t off, size_t len, ceph_object_layout ol, bufferlist &bl, 
                       Context *onack, Context *oncommit)
 {
   OSDWrite *wr = new OSDWrite(bl);
@@ -674,7 +674,7 @@ tid_t Objecter::write(object_t oid, off_t off, size_t len, ceph_object_layout_t
 
 // zero
 
-tid_t Objecter::zero(object_t oid, off_t off, size_t len, ceph_object_layout_t ol,
+tid_t Objecter::zero(object_t oid, off_t off, size_t len, ceph_object_layout ol,
                      Context *onack, Context *oncommit)
 {
   OSDModify *z = new OSDModify(CEPH_OSD_OP_ZERO);
@@ -687,7 +687,7 @@ tid_t Objecter::zero(object_t oid, off_t off, size_t len, ceph_object_layout_t o
 
 // lock ops
 
-tid_t Objecter::lock(int op, object_t oid, ceph_object_layout_t ol, 
+tid_t Objecter::lock(int op, object_t oid, ceph_object_layout ol, 
                      Context *onack, Context *oncommit)
 {
   OSDModify *l = new OSDModify(op);
index 0c7dd89756f547a9153fa07bb0dc97b8c1b9ee42..c076b080f9e3b163e605d0c9d1e4cfe0bdd85348 100644 (file)
@@ -209,18 +209,17 @@ class Objecter {
   // med level
   tid_t readx(OSDRead *read, Context *onfinish);
   tid_t modifyx(OSDModify *wr, Context *onack, Context *oncommit);
-  //tid_t lockx(OSDLock *l, Context *onack, Context *oncommit);
 
   // even lazier
-  tid_t read(object_t oid, off_t off, size_t len, ceph_object_layout_t ol, bufferlist *bl, 
+  tid_t read(object_t oid, off_t off, size_t len, ceph_object_layout ol, bufferlist *bl, 
              Context *onfinish);
-  tid_t write(object_t oid, off_t off, size_t len, ceph_object_layout_t ol, bufferlist &bl, 
+  tid_t write(object_t oid, off_t off, size_t len, ceph_object_layout ol, bufferlist &bl, 
               Context *onack, Context *oncommit);
-  tid_t zero(object_t oid, off_t off, size_t len, ceph_object_layout_t ol,  
+  tid_t zero(object_t oid, off_t off, size_t len, ceph_object_layout ol,  
              Context *onack, Context *oncommit);
-  tid_t stat(object_t oid, off_t *size, ceph_object_layout_t ol, Context *onfinish);
+  tid_t stat(object_t oid, off_t *size, ceph_object_layout ol, Context *onfinish);
   
-  tid_t lock(int op, object_t oid, ceph_object_layout_t ol, Context *onack, Context *oncommit);
+  tid_t lock(int op, object_t oid, ceph_object_layout ol, Context *onack, Context *oncommit);
 
 
   void ms_handle_failure(Message *m, entity_name_t dest, const entity_inst_t& inst);