From: Greg Farnum Date: Tue, 17 Aug 2010 18:19:02 +0000 (-0700) Subject: mds: CInode: create new projection_node with pointers for X-Git-Tag: v0.22~229^2~24 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e3aacf6c937792e024571744ea229cb7665f0089;p=ceph.git mds: CInode: create new projection_node with pointers for inode, xattrs, and snaprealm. --- diff --git a/src/mds/CInode.h b/src/mds/CInode.h index 3ab73f41e0de..a59f2d852cb9 100644 --- a/src/mds/CInode.h +++ b/src/mds/CInode.h @@ -184,6 +184,18 @@ public: //bool hack_accessed; //utime_t hack_load_stamp; + struct projection_node { + inode_t *inode; + map *xattrs; + sr_t *snapnode; + + projection_node() : inode(NULL), xattrs(NULL), snapnode(NULL) {} + projection_node(inode_t *in, sr_t *sn) : inode(in), xattrs(NULL), snapnode(sn) {} + projection_node(inode_t *in, map *xp = NULL, sr_t *sn = NULL) : + inode(in), xattrs(xp), snapnode(sn) {} + }; + list projected_nodes; + // projected values (only defined while dirty) list projected_inode;