diff options
author | Sage Weil <sage@inktank.com> | 2012-07-30 19:23:22 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-30 19:23:22 -0400 |
commit | 1fe60e51a3744528f3939b1b1167ca909133d9ae (patch) | |
tree | 06ca8731f1be425ffbd6ffcdfd9e94b89b05ceec | |
parent | d1f57ea66369b5c34bd42f104b8070db409447f9 (diff) |
libceph: move feature bits to separate header
This is simply cleanup that will keep things more closely synced with the
userland code.
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | fs/ceph/mds_client.c | 1 | ||||
-rw-r--r-- | fs/ceph/super.c | 1 | ||||
-rw-r--r-- | include/linux/ceph/ceph_features.h | 24 | ||||
-rw-r--r-- | include/linux/ceph/ceph_fs.h | 14 | ||||
-rw-r--r-- | include/linux/ceph/libceph.h | 6 | ||||
-rw-r--r-- | net/ceph/ceph_common.c | 5 |
6 files changed, 29 insertions, 22 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 418f6a82c90d..39b76d66bc5d 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include "super.h" | 10 | #include "super.h" |
11 | #include "mds_client.h" | 11 | #include "mds_client.h" |
12 | 12 | ||
13 | #include <linux/ceph/ceph_features.h> | ||
13 | #include <linux/ceph/messenger.h> | 14 | #include <linux/ceph/messenger.h> |
14 | #include <linux/ceph/decode.h> | 15 | #include <linux/ceph/decode.h> |
15 | #include <linux/ceph/pagelist.h> | 16 | #include <linux/ceph/pagelist.h> |
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 1e67dd7305a4..2c47ecfe4373 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "super.h" | 18 | #include "super.h" |
19 | #include "mds_client.h" | 19 | #include "mds_client.h" |
20 | 20 | ||
21 | #include <linux/ceph/ceph_features.h> | ||
21 | #include <linux/ceph/decode.h> | 22 | #include <linux/ceph/decode.h> |
22 | #include <linux/ceph/mon_client.h> | 23 | #include <linux/ceph/mon_client.h> |
23 | #include <linux/ceph/auth.h> | 24 | #include <linux/ceph/auth.h> |
diff --git a/include/linux/ceph/ceph_features.h b/include/linux/ceph/ceph_features.h new file mode 100644 index 000000000000..342f93dbe162 --- /dev/null +++ b/include/linux/ceph/ceph_features.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef __CEPH_FEATURES | ||
2 | #define __CEPH_FEATURES | ||
3 | |||
4 | /* | ||
5 | * feature bits | ||
6 | */ | ||
7 | #define CEPH_FEATURE_UID (1<<0) | ||
8 | #define CEPH_FEATURE_NOSRCADDR (1<<1) | ||
9 | #define CEPH_FEATURE_MONCLOCKCHECK (1<<2) | ||
10 | #define CEPH_FEATURE_FLOCK (1<<3) | ||
11 | #define CEPH_FEATURE_SUBSCRIBE2 (1<<4) | ||
12 | #define CEPH_FEATURE_MONNAMES (1<<5) | ||
13 | #define CEPH_FEATURE_RECONNECT_SEQ (1<<6) | ||
14 | #define CEPH_FEATURE_DIRLAYOUTHASH (1<<7) | ||
15 | |||
16 | /* | ||
17 | * Features supported. | ||
18 | */ | ||
19 | #define CEPH_FEATURES_SUPPORTED_DEFAULT \ | ||
20 | (CEPH_FEATURE_NOSRCADDR) | ||
21 | |||
22 | #define CEPH_FEATURES_REQUIRED_DEFAULT \ | ||
23 | (CEPH_FEATURE_NOSRCADDR) | ||
24 | #endif | ||
diff --git a/include/linux/ceph/ceph_fs.h b/include/linux/ceph/ceph_fs.h index e81ab30d4896..d021610efd65 100644 --- a/include/linux/ceph/ceph_fs.h +++ b/include/linux/ceph/ceph_fs.h | |||
@@ -35,20 +35,6 @@ | |||
35 | /* arbitrary limit on max # of monitors (cluster of 3 is typical) */ | 35 | /* arbitrary limit on max # of monitors (cluster of 3 is typical) */ |
36 | #define CEPH_MAX_MON 31 | 36 | #define CEPH_MAX_MON 31 |
37 | 37 | ||
38 | |||
39 | /* | ||
40 | * feature bits | ||
41 | */ | ||
42 | #define CEPH_FEATURE_UID (1<<0) | ||
43 | #define CEPH_FEATURE_NOSRCADDR (1<<1) | ||
44 | #define CEPH_FEATURE_MONCLOCKCHECK (1<<2) | ||
45 | #define CEPH_FEATURE_FLOCK (1<<3) | ||
46 | #define CEPH_FEATURE_SUBSCRIBE2 (1<<4) | ||
47 | #define CEPH_FEATURE_MONNAMES (1<<5) | ||
48 | #define CEPH_FEATURE_RECONNECT_SEQ (1<<6) | ||
49 | #define CEPH_FEATURE_DIRLAYOUTHASH (1<<7) | ||
50 | |||
51 | |||
52 | /* | 38 | /* |
53 | * ceph_file_layout - describe data layout for a file/inode | 39 | * ceph_file_layout - describe data layout for a file/inode |
54 | */ | 40 | */ |
diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h index 98ec36ae8a3b..ea072e1f9db9 100644 --- a/include/linux/ceph/libceph.h +++ b/include/linux/ceph/libceph.h | |||
@@ -23,12 +23,6 @@ | |||
23 | #include "ceph_fs.h" | 23 | #include "ceph_fs.h" |
24 | 24 | ||
25 | /* | 25 | /* |
26 | * Supported features | ||
27 | */ | ||
28 | #define CEPH_FEATURE_SUPPORTED_DEFAULT CEPH_FEATURE_NOSRCADDR | ||
29 | #define CEPH_FEATURE_REQUIRED_DEFAULT CEPH_FEATURE_NOSRCADDR | ||
30 | |||
31 | /* | ||
32 | * mount options | 26 | * mount options |
33 | */ | 27 | */ |
34 | #define CEPH_OPT_FSID (1<<0) | 28 | #define CEPH_OPT_FSID (1<<0) |
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c index 3b45e01fa8d1..69e38db28e5f 100644 --- a/net/ceph/ceph_common.c +++ b/net/ceph/ceph_common.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/string.h> | 17 | #include <linux/string.h> |
18 | 18 | ||
19 | 19 | ||
20 | #include <linux/ceph/ceph_features.h> | ||
20 | #include <linux/ceph/libceph.h> | 21 | #include <linux/ceph/libceph.h> |
21 | #include <linux/ceph/debugfs.h> | 22 | #include <linux/ceph/debugfs.h> |
22 | #include <linux/ceph/decode.h> | 23 | #include <linux/ceph/decode.h> |
@@ -460,9 +461,9 @@ struct ceph_client *ceph_create_client(struct ceph_options *opt, void *private, | |||
460 | client->auth_err = 0; | 461 | client->auth_err = 0; |
461 | 462 | ||
462 | client->extra_mon_dispatch = NULL; | 463 | client->extra_mon_dispatch = NULL; |
463 | client->supported_features = CEPH_FEATURE_SUPPORTED_DEFAULT | | 464 | client->supported_features = CEPH_FEATURES_SUPPORTED_DEFAULT | |
464 | supported_features; | 465 | supported_features; |
465 | client->required_features = CEPH_FEATURE_REQUIRED_DEFAULT | | 466 | client->required_features = CEPH_FEATURES_REQUIRED_DEFAULT | |
466 | required_features; | 467 | required_features; |
467 | 468 | ||
468 | /* msgr */ | 469 | /* msgr */ |