diff options
-rw-r--r-- | include/linux/ceph/libceph.h | 2 | ||||
-rw-r--r-- | net/ceph/ceph_common.c | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h index 084d3c622b12..c44275ab375c 100644 --- a/include/linux/ceph/libceph.h +++ b/include/linux/ceph/libceph.h | |||
@@ -193,6 +193,8 @@ static inline int calc_pages_for(u64 off, u64 len) | |||
193 | } | 193 | } |
194 | 194 | ||
195 | /* ceph_common.c */ | 195 | /* ceph_common.c */ |
196 | extern bool libceph_compatible(void *data); | ||
197 | |||
196 | extern const char *ceph_msg_type_name(int type); | 198 | extern const char *ceph_msg_type_name(int type); |
197 | extern int ceph_check_fsid(struct ceph_client *client, struct ceph_fsid *fsid); | 199 | extern int ceph_check_fsid(struct ceph_client *client, struct ceph_fsid *fsid); |
198 | extern struct kmem_cache *ceph_inode_cachep; | 200 | extern struct kmem_cache *ceph_inode_cachep; |
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c index ee71ea26777a..a98c03ff853f 100644 --- a/net/ceph/ceph_common.c +++ b/net/ceph/ceph_common.c | |||
@@ -26,6 +26,22 @@ | |||
26 | #include "crypto.h" | 26 | #include "crypto.h" |
27 | 27 | ||
28 | 28 | ||
29 | /* | ||
30 | * Module compatibility interface. For now it doesn't do anything, | ||
31 | * but its existence signals a certain level of functionality. | ||
32 | * | ||
33 | * The data buffer is used to pass information both to and from | ||
34 | * libceph. The return value indicates whether libceph determines | ||
35 | * it is compatible with the caller (from another kernel module), | ||
36 | * given the provided data. | ||
37 | * | ||
38 | * The data pointer can be null. | ||
39 | */ | ||
40 | bool libceph_compatible(void *data) | ||
41 | { | ||
42 | return false; | ||
43 | } | ||
44 | EXPORT_SYMBOL(libceph_compatible); | ||
29 | 45 | ||
30 | /* | 46 | /* |
31 | * find filename portion of a path (/foo/bar/baz -> baz) | 47 | * find filename portion of a path (/foo/bar/baz -> baz) |