From: Greg Farnum Date: Fri, 18 Jan 2013 00:49:33 +0000 (-0800) Subject: InoTable: use modern encoding for encode_state and decode_state X-Git-Tag: v0.58~100^2~42 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6e797e0055063975cd1bfb676b8d66a9579cc132;p=ceph.git InoTable: use modern encoding for encode_state and decode_state Signed-off-by: Greg Farnum --- diff --git a/src/mds/InoTable.h b/src/mds/InoTable.h index 3a706360797..88fd9ecaaaa 100644 --- a/src/mds/InoTable.h +++ b/src/mds/InoTable.h @@ -44,15 +44,15 @@ class InoTable : public MDSTable { void reset_state(); void encode_state(bufferlist& bl) { - __u8 v = 1; - ::encode(v, bl); + ENCODE_START(2, 2, bl); ::encode(free, bl); + ENCODE_FINISH(bl); } void decode_state(bufferlist::iterator& bl) { - __u8 v; - ::decode(v, bl); + DECODE_START_LEGACY_COMPAT_LEN(2, 2, 2, bl); ::decode(free, bl); projected_free = free; + DECODE_FINISH(bl); } void skip_inos(inodeno_t i);