From ca6c8a7a1956691837948c38ff7c5b7c45f2a051 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Wed, 25 Apr 2018 12:17:22 +0800 Subject: [PATCH] mds: fix CEPH_STAT_RSTAT definition (CEPH_CAP_GWREXTEND << 16) is (1<<22), which causes gaps in caps bits. CEPH_CAP_FILE_WREXTEND is an unused bit, reuse it for CEPH_STAT_RSTAT. Signed-off-by: "Yan, Zheng" --- src/include/ceph_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/ceph_fs.h b/src/include/ceph_fs.h index 8dda545c148..f34a51c1aac 100644 --- a/src/include/ceph_fs.h +++ b/src/include/ceph_fs.h @@ -737,7 +737,7 @@ int ceph_flags_to_mode(int flags); CEPH_CAP_XATTR_SHARED) #define CEPH_STAT_CAP_INLINE_DATA (CEPH_CAP_FILE_SHARED | \ CEPH_CAP_FILE_RD) -#define CEPH_STAT_RSTAT (CEPH_CAP_GWREXTEND << 16) /* for requesting rstat */ +#define CEPH_STAT_RSTAT CEPH_CAP_FILE_WREXTEND #define CEPH_CAP_ANY_SHARED (CEPH_CAP_AUTH_SHARED | \ CEPH_CAP_LINK_SHARED | \ -- 2.39.5