From: Patrick Donnelly Date: Thu, 7 Jul 2016 01:50:47 +0000 (-0400) Subject: client: note order of member init in cons X-Git-Tag: ses5-milestone5~403^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=63053011305cd0baa28811d13c3c8c2c6204a0f4;p=ceph.git client: note order of member init in cons (The order of the initializer list is not relevant, only the order of class members.) This also makes explicit the passed reference to the ino member by "this->ino". Signed-off-by: Patrick Donnelly --- diff --git a/src/client/Inode.h b/src/client/Inode.h index 5398c68c41f6..31c2b746293b 100644 --- a/src/client/Inode.h +++ b/src/client/Inode.h @@ -85,7 +85,7 @@ struct Inode { Client *client; // -- the actual inode -- - inodeno_t ino; + inodeno_t ino; // ORDER DEPENDENCY: oset snapid_t snapid; ino_t faked_ino; @@ -179,7 +179,7 @@ struct Inode { map open_by_mode; map cap_refs; - ObjectCacher::ObjectSet oset; + ObjectCacher::ObjectSet oset; // ORDER DEPENDENCY: ino uint64_t reported_size, wanted_max_size, requested_max_size; @@ -235,7 +235,7 @@ struct Inode { snap_caps(0), snap_cap_refs(0), cap_item(this), flushing_cap_item(this), snaprealm(0), snaprealm_item(this), - oset((void *)this, newlayout->pool_id, ino), + oset((void *)this, newlayout->pool_id, this->ino), reported_size(0), wanted_max_size(0), requested_max_size(0), _ref(0), ll_ref(0), dn_set(), fcntl_locks(NULL), flock_locks(NULL),