From cfc3ec17b6f245e6d8a0be4fdf6cfa64d2fb725f Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Fri, 24 Jun 2016 17:09:34 +0800 Subject: [PATCH] mds: remove CEPH_LOCK_IFLOCKL from cinode_lock_info Currently we don't support dirty CEPH_CAP_FLOCK_EXCL Signed-off-by: Yan, Zheng --- src/mds/CInode.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 38bd214c758..aea56906bfc 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -92,9 +92,8 @@ struct cinode_lock_info_t cinode_lock_info[] = { { CEPH_LOCK_IAUTH, CEPH_CAP_AUTH_EXCL }, { CEPH_LOCK_ILINK, CEPH_CAP_LINK_EXCL }, { CEPH_LOCK_IXATTR, CEPH_CAP_XATTR_EXCL }, - { CEPH_LOCK_IFLOCK, CEPH_CAP_FLOCK_EXCL } }; -int num_cinode_locks = 5; +int num_cinode_locks = sizeof(cinode_lock_info) / sizeof(cinode_lock_info[0]);