diff options
Diffstat (limited to 'fs/ceph/super.c')
-rw-r--r-- | fs/ceph/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 39aaf29a04a0..74953be75f8f 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c | |||
@@ -578,6 +578,9 @@ static struct ceph_client *ceph_create_client(struct ceph_mount_args *args) | |||
578 | if (!client->wb_pagevec_pool) | 578 | if (!client->wb_pagevec_pool) |
579 | goto fail_trunc_wq; | 579 | goto fail_trunc_wq; |
580 | 580 | ||
581 | /* caps */ | ||
582 | client->min_caps = args->max_readdir; | ||
583 | ceph_adjust_min_caps(client->min_caps); | ||
581 | 584 | ||
582 | /* subsystems */ | 585 | /* subsystems */ |
583 | err = ceph_monc_init(&client->monc, client); | 586 | err = ceph_monc_init(&client->monc, client); |
@@ -619,6 +622,8 @@ static void ceph_destroy_client(struct ceph_client *client) | |||
619 | ceph_monc_stop(&client->monc); | 622 | ceph_monc_stop(&client->monc); |
620 | ceph_osdc_stop(&client->osdc); | 623 | ceph_osdc_stop(&client->osdc); |
621 | 624 | ||
625 | ceph_adjust_min_caps(-client->min_caps); | ||
626 | |||
622 | ceph_debugfs_client_cleanup(client); | 627 | ceph_debugfs_client_cleanup(client); |
623 | destroy_workqueue(client->wb_wq); | 628 | destroy_workqueue(client->wb_wq); |
624 | destroy_workqueue(client->pg_inv_wq); | 629 | destroy_workqueue(client->pg_inv_wq); |