From: Sage Weil Date: Tue, 21 Apr 2009 23:24:21 +0000 (-0700) Subject: mds: fix get_caps_issued shift/mask bug X-Git-Tag: v0.7.3~81 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e3d2dffdaf3a402fe93afdb4cb2e49b1c8b324f;p=ceph.git mds: fix get_caps_issued shift/mask bug --- diff --git a/src/mds/CInode.h b/src/mds/CInode.h index 0404545939d3..dcfb7325fcf9 100644 --- a/src/mds/CInode.h +++ b/src/mds/CInode.h @@ -722,7 +722,7 @@ public: if (ploner) *ploner = (loner >> shift) & mask; if (pother) *pother = (other >> shift) & mask; if (pxlocker) *pxlocker = (xlocker >> shift) & mask; - return c; + return (c >> shift) & mask; } int get_caps_wanted(int *ploner = 0, int *pother = 0, int shift = 0, int mask = 0xffff) { int w = 0;