diff mbox

[23/29] mds: fix cap mask for ifile lock

Message ID 1357290140-17044-24-git-send-email-zheng.z.yan@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yan, Zheng Jan. 4, 2013, 9:02 a.m. UTC
From: "Yan, Zheng" <zheng.z.yan@intel.com>

ifile lock has 8 cap bits, should its cap mask should be 0xff

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
---
 src/mds/SimpleLock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/mds/SimpleLock.h b/src/mds/SimpleLock.h
index 5ea2d4b..9531a01 100644
--- a/src/mds/SimpleLock.h
+++ b/src/mds/SimpleLock.h
@@ -273,7 +273,7 @@  public:
   }
   int get_cap_mask() const {
     switch (get_type()) {
-    case CEPH_LOCK_IFILE: return 0xf;
+    case CEPH_LOCK_IFILE: return 0xff;
     default: return 0x3;
     }
   }