ceph_common.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) | ceph_common.c (51e9273796a57c08801f45580d3db3c51987a0cb) |
---|---|
1 2#include <linux/ceph/ceph_debug.h> 3#include <linux/backing-dev.h> 4#include <linux/ctype.h> 5#include <linux/fs.h> 6#include <linux/inet.h> 7#include <linux/in6.h> 8#include <linux/key.h> --- 637 unchanged lines hidden (view full) --- 646 kfree(client); 647 dout("destroy_client %p done\n", client); 648} 649EXPORT_SYMBOL(ceph_destroy_client); 650 651/* 652 * true if we have the mon map (and have thus joined the cluster) 653 */ | 1 2#include <linux/ceph/ceph_debug.h> 3#include <linux/backing-dev.h> 4#include <linux/ctype.h> 5#include <linux/fs.h> 6#include <linux/inet.h> 7#include <linux/in6.h> 8#include <linux/key.h> --- 637 unchanged lines hidden (view full) --- 646 kfree(client); 647 dout("destroy_client %p done\n", client); 648} 649EXPORT_SYMBOL(ceph_destroy_client); 650 651/* 652 * true if we have the mon map (and have thus joined the cluster) 653 */ |
654static int have_mon_and_osd_map(struct ceph_client *client) | 654static bool have_mon_and_osd_map(struct ceph_client *client) |
655{ 656 return client->monc.monmap && client->monc.monmap->epoch && 657 client->osdc.osdmap && client->osdc.osdmap->epoch; 658} 659 660/* 661 * mount: join the ceph cluster, and open root directory. 662 */ --- 79 unchanged lines hidden (view full) --- 742 ceph_debugfs_cleanup(); 743out: 744 return ret; 745} 746 747static void __exit exit_ceph_lib(void) 748{ 749 dout("exit_ceph_lib\n"); | 655{ 656 return client->monc.monmap && client->monc.monmap->epoch && 657 client->osdc.osdmap && client->osdc.osdmap->epoch; 658} 659 660/* 661 * mount: join the ceph cluster, and open root directory. 662 */ --- 79 unchanged lines hidden (view full) --- 742 ceph_debugfs_cleanup(); 743out: 744 return ret; 745} 746 747static void __exit exit_ceph_lib(void) 748{ 749 dout("exit_ceph_lib\n"); |
750 WARN_ON(!ceph_strings_empty()); 751 |
|
750 ceph_osdc_cleanup(); 751 ceph_msgr_exit(); 752 ceph_crypto_shutdown(); 753 ceph_debugfs_cleanup(); 754} 755 756module_init(init_ceph_lib); 757module_exit(exit_ceph_lib); 758 759MODULE_AUTHOR("Sage Weil <sage@newdream.net>"); 760MODULE_AUTHOR("Yehuda Sadeh <yehuda@hq.newdream.net>"); 761MODULE_AUTHOR("Patience Warnick <patience@newdream.net>"); 762MODULE_DESCRIPTION("Ceph core library"); 763MODULE_LICENSE("GPL"); | 752 ceph_osdc_cleanup(); 753 ceph_msgr_exit(); 754 ceph_crypto_shutdown(); 755 ceph_debugfs_cleanup(); 756} 757 758module_init(init_ceph_lib); 759module_exit(exit_ceph_lib); 760 761MODULE_AUTHOR("Sage Weil <sage@newdream.net>"); 762MODULE_AUTHOR("Yehuda Sadeh <yehuda@hq.newdream.net>"); 763MODULE_AUTHOR("Patience Warnick <patience@newdream.net>"); 764MODULE_DESCRIPTION("Ceph core library"); 765MODULE_LICENSE("GPL"); |