Skip to contentSkip to conversation

ceph: remove useless CEPHFS_FEATURES_CLIENT_REQUIRED

PATCH In review Xiubo Li 3 participants 3 messages May 26, 2022 – May 27, 2022 Ceph client

lore
Share & tools
lore

Xiubo Li

author
#0 lore raw

PATCH 1/1 ceph: remove useless CEPHFS_FEATURES_CLIENT_REQUIRED

This macro was added but never be used. And check the ceph code there has another CEPHFS_FEATURES_MDS_REQUIRED but always be empty.

We should clean up all this related code, which make no sense but introducing confusion.

---
 fs/ceph/mds_client.h | 1 -
 1 file changed, 1 deletion(-)
fs/ceph/mds_client.h +0 -1
index 636fcf4503e0..d8ec2ac93da3 100644
@@ -42,7 +42,6 @@ enum ceph_feature_type {
 	CEPHFS_FEATURE_DELEG_INO,		\
 	CEPHFS_FEATURE_METRIC_COLLECT,		\
 }
-#define CEPHFS_FEATURES_CLIENT_REQUIRED {}
 
 /*
  * Some lock dependencies:
Signature · 1 line
2.36.0.rc1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Xiubo Li

This macro was added but never be used. And check the ceph code there has another CEPHFS_FEATURES_MDS_REQUIRED but always be empty.

We should clean up all this related code, which make no sense but introducing confusion.

---
 fs/ceph/mds_client.h | 1 -
 1 file changed, 1 deletion(-)
fs/ceph/mds_client.h +0 -0
index 636fcf4503e0..d8ec2ac93da3 100644

fs/ceph/mds_client.h enum ceph_feature_type { · line 47

Quoted 7 lines
fs/ceph/mds_client.h +0 -1
@@ -42,7 +42,6 @@ enum ceph_feature_type {
 	CEPHFS_FEATURE_DELEG_INO,		\
 	CEPHFS_FEATURE_METRIC_COLLECT,		\
 }
-#define CEPHFS_FEATURES_CLIENT_REQUIRED {}
 
 /*
  * Some lock dependencies:
Reviewed-by
#2 lore raw
Quoted 22 lines · Jeff Layton
Quoted 21 lines · Xiubo Li

This macro was added but never be used. And check the ceph code there has another CEPHFS_FEATURES_MDS_REQUIRED but always be empty.

We should clean up all this related code, which make no sense but introducing confusion.

---
 fs/ceph/mds_client.h | 1 -
 1 file changed, 1 deletion(-)
fs/ceph/mds_client.h +0 -1
index 636fcf4503e0..d8ec2ac93da3 100644
@@ -42,7 +42,6 @@ enum ceph_feature_type {
 	CEPHFS_FEATURE_DELEG_INO,		\
 	CEPHFS_FEATURE_METRIC_COLLECT,		\
 }
-#define CEPHFS_FEATURES_CLIENT_REQUIRED {}
 
Quoted 4 lines

fs/ceph/mds_client.h enum ceph_feature_type { · line 47

Quoted 2 lines
fs/ceph/mds_client.h +0 -0
 /*
  * Some lock dependencies:

Yep, this makes sense.

Cheers,

Signature · 1 line
Luís