]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix CEPH_STAT_RSTAT definition 21633/head
authorYan, Zheng <zyan@redhat.com>
Wed, 25 Apr 2018 04:17:22 +0000 (12:17 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 25 Apr 2018 04:20:04 +0000 (12:20 +0800)
(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" <zyan@redhat.com>
src/include/ceph_fs.h

index 8dda545c148b2110bd4b94a4c5f96995de2cff08..f34a51c1aac9077242ec6c92d1df66cbcff8148a 100644 (file)
@@ -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 |                    \