aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph/ceph_common.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-02-05 15:36:22 +0800
committerIlya Dryomov <idryomov@gmail.com>2016-07-28 02:55:37 +0200
commit51e9273796a57c08801f45580d3db3c51987a0cb (patch)
tree5eb35d4d7c0f44065b0fe17f0bb0a3c98202f215 /net/ceph/ceph_common.c
parentlibceph: define new ceph_file_layout structure (diff)
downloadlinux-dev-51e9273796a57c08801f45580d3db3c51987a0cb.tar.xz
linux-dev-51e9273796a57c08801f45580d3db3c51987a0cb.zip
libceph: introduce reference counted string
The data structure is for storing namesapce string. It allows namespace string to be shared between cephfs inodes with same layout. This data structure can also be referenced by OSD request. Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to '')
-rw-r--r--net/ceph/ceph_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c
index 55d2bfee16d7..bddfcf6f09c2 100644
--- a/net/ceph/ceph_common.c
+++ b/net/ceph/ceph_common.c
@@ -747,6 +747,8 @@ out:
static void __exit exit_ceph_lib(void)
{
dout("exit_ceph_lib\n");
+ WARN_ON(!ceph_strings_empty());
+
ceph_osdc_cleanup();
ceph_msgr_exit();
ceph_crypto_shutdown();