From cc8454621e47e3356b390426c28f85ebebe0473b Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 30 Apr 2010 16:45:29 -0700 Subject: [PATCH] mds: use the right size mask for file cap bits --- src/mds/SimpleLock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mds/SimpleLock.h b/src/mds/SimpleLock.h index f52740f2830..5ece3ac7af5 100644 --- a/src/mds/SimpleLock.h +++ b/src/mds/SimpleLock.h @@ -252,7 +252,7 @@ public: } int get_cap_mask() { switch (get_type()) { - case CEPH_LOCK_IFILE: return 0xffff; + case CEPH_LOCK_IFILE: return 0xf; default: return 0x3; } } @@ -543,7 +543,7 @@ public: int gcaps_xlocker_mask(client_t client) { if (client == get_xlock_by_client()) - return type->type == CEPH_LOCK_IFILE ? 0xffff : (CEPH_CAP_GSHARED|CEPH_CAP_GEXCL); + return type->type == CEPH_LOCK_IFILE ? 0xf : (CEPH_CAP_GSHARED|CEPH_CAP_GEXCL); return 0; }