]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ceph/ceph_common.c
Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[karo-tx-linux.git] / net / ceph / ceph_common.c
index 26ab58665f772177c81baf24a09107de08696a1b..5c036d2f401e25b42ece6d7cc6c4fc30c00dea43 100644 (file)
@@ -56,19 +56,6 @@ static const struct kernel_param_ops param_ops_supported_features = {
 module_param_cb(supported_features, &param_ops_supported_features, NULL,
                S_IRUGO);
 
-/*
- * find filename portion of a path (/foo/bar/baz -> baz)
- */
-const char *ceph_file_part(const char *s, int len)
-{
-       const char *e = s + len;
-
-       while (e != s && *(e-1) != '/')
-               e--;
-       return e;
-}
-EXPORT_SYMBOL(ceph_file_part);
-
 const char *ceph_msg_type_name(int type)
 {
        switch (type) {
@@ -98,6 +85,7 @@ const char *ceph_msg_type_name(int type)
        case CEPH_MSG_OSD_OP: return "osd_op";
        case CEPH_MSG_OSD_OPREPLY: return "osd_opreply";
        case CEPH_MSG_WATCH_NOTIFY: return "watch_notify";
+       case CEPH_MSG_OSD_BACKOFF: return "osd_backoff";
        default: return "unknown";
        }
 }