]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: make dout's ceph_file_part NOT inline
authorSage Weil <sage@newdream.net>
Fri, 17 Jul 2009 19:50:30 +0000 (12:50 -0700)
committerSage Weil <sage@newdream.net>
Fri, 17 Jul 2009 20:53:39 +0000 (13:53 -0700)
src/kernel/ceph_debug.h
src/kernel/super.c

index 2c39f091913114b936be2eea54441755ed630d5b..f1868ebbfb325876729ba3aac87e63e9ea634eb2 100644 (file)
@@ -5,14 +5,7 @@
  * wrap pr_debug to include a filename:lineno prefix on each line
  */
 
-static inline const char *ceph_file_part(const char *s, int len)
-{
-       const char *e = s + len;
-
-       while (e != s && *(e-1) != '/')
-               e--;
-       return e;
-}
+extern const char *ceph_file_part(const char *s, int len);
 
 #define _dout(fmt, args...)                                            \
        pr_debug(" %12.12s:%-4d : " fmt "%s",                           \
index 8e2bd41e3325c750a94d1371995647f15eef2ef4..a3cccf3ef968e6ede21d64b66bc1294349787b7c 100644 (file)
@@ -28,6 +28,19 @@ void ceph_dispatch(void *p, struct ceph_msg *msg);
 void ceph_peer_reset(void *p, struct ceph_entity_addr *peer_addr,
                     struct ceph_entity_name *peer_name);
 
+/*
+ * 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;
+}
+
+
 /*
  * super ops
  */