From 388922ac35f49fea538757560e900d3da2db9c68 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Sun, 18 Mar 2018 18:52:10 +0800 Subject: [PATCH] mds: don't consider CEPH_INO_LOST_AND_FOUND as base inode Signed-off-by: "Yan, Zheng" --- src/mds/mdstypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index 585d6b92e0402..b4f080faabc5a 100644 --- a/src/mds/mdstypes.h +++ b/src/mds/mdstypes.h @@ -65,7 +65,7 @@ #define MDS_INO_IS_STRAY(i) ((i) >= MDS_INO_STRAY_OFFSET && (i) < (MDS_INO_STRAY_OFFSET+(MAX_MDS*NUM_STRAY))) #define MDS_INO_IS_MDSDIR(i) ((i) >= MDS_INO_MDSDIR_OFFSET && (i) < (MDS_INO_MDSDIR_OFFSET+MAX_MDS)) #define MDS_INO_MDSDIR_OWNER(i) (signed ((unsigned (i)) - MDS_INO_MDSDIR_OFFSET)) -#define MDS_INO_IS_BASE(i) ((i) < MDS_INO_MDSDIR_OFFSET || MDS_INO_IS_MDSDIR(i)) +#define MDS_INO_IS_BASE(i) ((i) == MDS_INO_ROOT || (i) == MDS_INO_GLOBAL_SNAPREALM || MDS_INO_IS_MDSDIR(i)) #define MDS_INO_STRAY_OWNER(i) (signed (((unsigned (i)) - MDS_INO_STRAY_OFFSET) / NUM_STRAY)) #define MDS_INO_STRAY_INDEX(i) (((unsigned (i)) - MDS_INO_STRAY_OFFSET) % NUM_STRAY) -- 2.39.5