aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.c
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2010-06-17 19:16:12 -0400
committerSage Weil <sage@newdream.net>2010-08-01 23:11:40 -0400
commit37151668bad3fd058368752bee476f2ba3645596 (patch)
tree6eeae77dfa1c758ff03659b5677f474a72fbe7c0 /fs/ceph/super.c
parent0deb01c9998f8112c5e478e3fe3a930131abbc0a (diff)
ceph: do caps accounting per mds_client
Caps related accounting is now being done per mds client instead of just being global. This prepares ground work for a later revision of the caps preallocated reservation list. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/super.c')
-rw-r--r--fs/ceph/super.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index fa87f51e38e1..1a0bb4863a5d 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -630,7 +630,6 @@ static struct ceph_client *ceph_create_client(struct ceph_mount_args *args)
630 630
631 /* caps */ 631 /* caps */
632 client->min_caps = args->max_readdir; 632 client->min_caps = args->max_readdir;
633 ceph_adjust_min_caps(client->min_caps);
634 633
635 /* subsystems */ 634 /* subsystems */
636 err = ceph_monc_init(&client->monc, client); 635 err = ceph_monc_init(&client->monc, client);
@@ -680,8 +679,6 @@ static void ceph_destroy_client(struct ceph_client *client)
680 679
681 ceph_monc_stop(&client->monc); 680 ceph_monc_stop(&client->monc);
682 681
683 ceph_adjust_min_caps(-client->min_caps);
684
685 ceph_debugfs_client_cleanup(client); 682 ceph_debugfs_client_cleanup(client);
686 destroy_workqueue(client->wb_wq); 683 destroy_workqueue(client->wb_wq);
687 destroy_workqueue(client->pg_inv_wq); 684 destroy_workqueue(client->pg_inv_wq);
@@ -1043,8 +1040,6 @@ static int __init init_ceph(void)
1043 if (ret) 1040 if (ret)
1044 goto out_msgr; 1041 goto out_msgr;
1045 1042
1046 ceph_caps_init();
1047
1048 ret = register_filesystem(&ceph_fs_type); 1043 ret = register_filesystem(&ceph_fs_type);
1049 if (ret) 1044 if (ret)
1050 goto out_icache; 1045 goto out_icache;
@@ -1069,7 +1064,6 @@ static void __exit exit_ceph(void)
1069{ 1064{
1070 dout("exit_ceph\n"); 1065 dout("exit_ceph\n");
1071 unregister_filesystem(&ceph_fs_type); 1066 unregister_filesystem(&ceph_fs_type);
1072 ceph_caps_finalize();
1073 destroy_caches(); 1067 destroy_caches();
1074 ceph_msgr_exit(); 1068 ceph_msgr_exit();
1075 ceph_debugfs_cleanup(); 1069 ceph_debugfs_cleanup();