diff options
-rw-r--r-- | fs/ceph/mds_client.c | 14 | ||||
-rw-r--r-- | fs/ceph/super.c | 4 | ||||
-rw-r--r-- | include/linux/ceph/libceph.h | 8 | ||||
-rw-r--r-- | include/linux/ceph/messenger.h | 10 | ||||
-rw-r--r-- | net/ceph/ceph_common.c | 4 | ||||
-rw-r--r-- | net/ceph/messenger.c | 4 |
6 files changed, 22 insertions, 22 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index d90861f45210..4a13f6e72069 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c | |||
@@ -63,7 +63,7 @@ static const struct ceph_connection_operations mds_con_ops; | |||
63 | */ | 63 | */ |
64 | static int parse_reply_info_in(void **p, void *end, | 64 | static int parse_reply_info_in(void **p, void *end, |
65 | struct ceph_mds_reply_info_in *info, | 65 | struct ceph_mds_reply_info_in *info, |
66 | int features) | 66 | u64 features) |
67 | { | 67 | { |
68 | int err = -EIO; | 68 | int err = -EIO; |
69 | 69 | ||
@@ -98,7 +98,7 @@ bad: | |||
98 | */ | 98 | */ |
99 | static int parse_reply_info_trace(void **p, void *end, | 99 | static int parse_reply_info_trace(void **p, void *end, |
100 | struct ceph_mds_reply_info_parsed *info, | 100 | struct ceph_mds_reply_info_parsed *info, |
101 | int features) | 101 | u64 features) |
102 | { | 102 | { |
103 | int err; | 103 | int err; |
104 | 104 | ||
@@ -145,7 +145,7 @@ out_bad: | |||
145 | */ | 145 | */ |
146 | static int parse_reply_info_dir(void **p, void *end, | 146 | static int parse_reply_info_dir(void **p, void *end, |
147 | struct ceph_mds_reply_info_parsed *info, | 147 | struct ceph_mds_reply_info_parsed *info, |
148 | int features) | 148 | u64 features) |
149 | { | 149 | { |
150 | u32 num, i = 0; | 150 | u32 num, i = 0; |
151 | int err; | 151 | int err; |
@@ -217,7 +217,7 @@ out_bad: | |||
217 | */ | 217 | */ |
218 | static int parse_reply_info_filelock(void **p, void *end, | 218 | static int parse_reply_info_filelock(void **p, void *end, |
219 | struct ceph_mds_reply_info_parsed *info, | 219 | struct ceph_mds_reply_info_parsed *info, |
220 | int features) | 220 | u64 features) |
221 | { | 221 | { |
222 | if (*p + sizeof(*info->filelock_reply) > end) | 222 | if (*p + sizeof(*info->filelock_reply) > end) |
223 | goto bad; | 223 | goto bad; |
@@ -238,7 +238,7 @@ bad: | |||
238 | */ | 238 | */ |
239 | static int parse_reply_info_create(void **p, void *end, | 239 | static int parse_reply_info_create(void **p, void *end, |
240 | struct ceph_mds_reply_info_parsed *info, | 240 | struct ceph_mds_reply_info_parsed *info, |
241 | int features) | 241 | u64 features) |
242 | { | 242 | { |
243 | if (features & CEPH_FEATURE_REPLY_CREATE_INODE) { | 243 | if (features & CEPH_FEATURE_REPLY_CREATE_INODE) { |
244 | if (*p == end) { | 244 | if (*p == end) { |
@@ -262,7 +262,7 @@ bad: | |||
262 | */ | 262 | */ |
263 | static int parse_reply_info_extra(void **p, void *end, | 263 | static int parse_reply_info_extra(void **p, void *end, |
264 | struct ceph_mds_reply_info_parsed *info, | 264 | struct ceph_mds_reply_info_parsed *info, |
265 | int features) | 265 | u64 features) |
266 | { | 266 | { |
267 | if (info->head->op == CEPH_MDS_OP_GETFILELOCK) | 267 | if (info->head->op == CEPH_MDS_OP_GETFILELOCK) |
268 | return parse_reply_info_filelock(p, end, info, features); | 268 | return parse_reply_info_filelock(p, end, info, features); |
@@ -280,7 +280,7 @@ static int parse_reply_info_extra(void **p, void *end, | |||
280 | */ | 280 | */ |
281 | static int parse_reply_info(struct ceph_msg *msg, | 281 | static int parse_reply_info(struct ceph_msg *msg, |
282 | struct ceph_mds_reply_info_parsed *info, | 282 | struct ceph_mds_reply_info_parsed *info, |
283 | int features) | 283 | u64 features) |
284 | { | 284 | { |
285 | void *p, *end; | 285 | void *p, *end; |
286 | u32 len; | 286 | u32 len; |
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index c6740e43a351..2df963f1cf5a 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c | |||
@@ -490,10 +490,10 @@ static struct ceph_fs_client *create_fs_client(struct ceph_mount_options *fsopt, | |||
490 | struct ceph_options *opt) | 490 | struct ceph_options *opt) |
491 | { | 491 | { |
492 | struct ceph_fs_client *fsc; | 492 | struct ceph_fs_client *fsc; |
493 | const unsigned supported_features = | 493 | const u64 supported_features = |
494 | CEPH_FEATURE_FLOCK | | 494 | CEPH_FEATURE_FLOCK | |
495 | CEPH_FEATURE_DIRLAYOUTHASH; | 495 | CEPH_FEATURE_DIRLAYOUTHASH; |
496 | const unsigned required_features = 0; | 496 | const u64 required_features = 0; |
497 | int page_count; | 497 | int page_count; |
498 | size_t size; | 498 | size_t size; |
499 | int err = -ENOMEM; | 499 | int err = -ENOMEM; |
diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h index 2e3024881a5e..7d704db60cbb 100644 --- a/include/linux/ceph/libceph.h +++ b/include/linux/ceph/libceph.h | |||
@@ -122,8 +122,8 @@ struct ceph_client { | |||
122 | 122 | ||
123 | int (*extra_mon_dispatch)(struct ceph_client *, struct ceph_msg *); | 123 | int (*extra_mon_dispatch)(struct ceph_client *, struct ceph_msg *); |
124 | 124 | ||
125 | u32 supported_features; | 125 | u64 supported_features; |
126 | u32 required_features; | 126 | u64 required_features; |
127 | 127 | ||
128 | struct ceph_messenger msgr; /* messenger instance */ | 128 | struct ceph_messenger msgr; /* messenger instance */ |
129 | struct ceph_mon_client monc; | 129 | struct ceph_mon_client monc; |
@@ -192,8 +192,8 @@ extern int ceph_compare_options(struct ceph_options *new_opt, | |||
192 | struct ceph_client *client); | 192 | struct ceph_client *client); |
193 | extern struct ceph_client *ceph_create_client(struct ceph_options *opt, | 193 | extern struct ceph_client *ceph_create_client(struct ceph_options *opt, |
194 | void *private, | 194 | void *private, |
195 | unsigned supported_features, | 195 | u64 supported_features, |
196 | unsigned required_features); | 196 | u64 required_features); |
197 | extern u64 ceph_client_id(struct ceph_client *client); | 197 | extern u64 ceph_client_id(struct ceph_client *client); |
198 | extern void ceph_destroy_client(struct ceph_client *client); | 198 | extern void ceph_destroy_client(struct ceph_client *client); |
199 | extern int __ceph_open_session(struct ceph_client *client, | 199 | extern int __ceph_open_session(struct ceph_client *client, |
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index 7c1420bb1dce..c1d3f5a65273 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h | |||
@@ -60,8 +60,8 @@ struct ceph_messenger { | |||
60 | u32 global_seq; | 60 | u32 global_seq; |
61 | spinlock_t global_seq_lock; | 61 | spinlock_t global_seq_lock; |
62 | 62 | ||
63 | u32 supported_features; | 63 | u64 supported_features; |
64 | u32 required_features; | 64 | u64 required_features; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | enum ceph_msg_data_type { | 67 | enum ceph_msg_data_type { |
@@ -192,7 +192,7 @@ struct ceph_connection { | |||
192 | 192 | ||
193 | struct ceph_entity_name peer_name; /* peer name */ | 193 | struct ceph_entity_name peer_name; /* peer name */ |
194 | 194 | ||
195 | unsigned peer_features; | 195 | u64 peer_features; |
196 | u32 connect_seq; /* identify the most recent connection | 196 | u32 connect_seq; /* identify the most recent connection |
197 | attempt for this connection, client */ | 197 | attempt for this connection, client */ |
198 | u32 peer_global_seq; /* peer's global seq for this connection */ | 198 | u32 peer_global_seq; /* peer's global seq for this connection */ |
@@ -256,8 +256,8 @@ extern void ceph_msgr_flush(void); | |||
256 | 256 | ||
257 | extern void ceph_messenger_init(struct ceph_messenger *msgr, | 257 | extern void ceph_messenger_init(struct ceph_messenger *msgr, |
258 | struct ceph_entity_addr *myaddr, | 258 | struct ceph_entity_addr *myaddr, |
259 | u32 supported_features, | 259 | u64 supported_features, |
260 | u32 required_features, | 260 | u64 required_features, |
261 | bool nocrc); | 261 | bool nocrc); |
262 | 262 | ||
263 | extern void ceph_con_init(struct ceph_connection *con, void *private, | 263 | extern void ceph_con_init(struct ceph_connection *con, void *private, |
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c index 34b11ee8124e..43d8177a52e1 100644 --- a/net/ceph/ceph_common.c +++ b/net/ceph/ceph_common.c | |||
@@ -461,8 +461,8 @@ EXPORT_SYMBOL(ceph_client_id); | |||
461 | * create a fresh client instance | 461 | * create a fresh client instance |
462 | */ | 462 | */ |
463 | struct ceph_client *ceph_create_client(struct ceph_options *opt, void *private, | 463 | struct ceph_client *ceph_create_client(struct ceph_options *opt, void *private, |
464 | unsigned int supported_features, | 464 | u64 supported_features, |
465 | unsigned int required_features) | 465 | u64 required_features) |
466 | { | 466 | { |
467 | struct ceph_client *client; | 467 | struct ceph_client *client; |
468 | struct ceph_entity_addr *myaddr = NULL; | 468 | struct ceph_entity_addr *myaddr = NULL; |
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index 4a5df7b1cc9f..260670558746 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c | |||
@@ -2853,8 +2853,8 @@ static void con_fault(struct ceph_connection *con) | |||
2853 | */ | 2853 | */ |
2854 | void ceph_messenger_init(struct ceph_messenger *msgr, | 2854 | void ceph_messenger_init(struct ceph_messenger *msgr, |
2855 | struct ceph_entity_addr *myaddr, | 2855 | struct ceph_entity_addr *myaddr, |
2856 | u32 supported_features, | 2856 | u64 supported_features, |
2857 | u32 required_features, | 2857 | u64 required_features, |
2858 | bool nocrc) | 2858 | bool nocrc) |
2859 | { | 2859 | { |
2860 | msgr->supported_features = supported_features; | 2860 | msgr->supported_features = supported_features; |