super.c (f5a2041bd96c9f05ff10172b9c814c14f247084e) | super.c (85ccce43a3fc15a40ded6ae1603e3f68a17f4d24) |
---|---|
1 2#include "ceph_debug.h" 3 4#include <linux/backing-dev.h> 5#include <linux/fs.h> 6#include <linux/inet.h> 7#include <linux/in6.h> 8#include <linux/module.h> --- 564 unchanged lines hidden (view full) --- 573 574 /* set up mempools */ 575 err = -ENOMEM; 576 client->wb_pagevec_pool = mempool_create_kmalloc_pool(10, 577 client->mount_args->wsize >> PAGE_CACHE_SHIFT); 578 if (!client->wb_pagevec_pool) 579 goto fail_trunc_wq; 580 | 1 2#include "ceph_debug.h" 3 4#include <linux/backing-dev.h> 5#include <linux/fs.h> 6#include <linux/inet.h> 7#include <linux/in6.h> 8#include <linux/module.h> --- 564 unchanged lines hidden (view full) --- 573 574 /* set up mempools */ 575 err = -ENOMEM; 576 client->wb_pagevec_pool = mempool_create_kmalloc_pool(10, 577 client->mount_args->wsize >> PAGE_CACHE_SHIFT); 578 if (!client->wb_pagevec_pool) 579 goto fail_trunc_wq; 580 |
581 /* caps */ 582 client->min_caps = args->max_readdir; 583 ceph_adjust_min_caps(client->min_caps); |
|
581 582 /* subsystems */ 583 err = ceph_monc_init(&client->monc, client); 584 if (err < 0) 585 goto fail_mempool; 586 err = ceph_osdc_init(&client->osdc, client); 587 if (err < 0) 588 goto fail_monc; --- 25 unchanged lines hidden (view full) --- 614{ 615 dout("destroy_client %p\n", client); 616 617 /* unmount */ 618 ceph_mdsc_stop(&client->mdsc); 619 ceph_monc_stop(&client->monc); 620 ceph_osdc_stop(&client->osdc); 621 | 584 585 /* subsystems */ 586 err = ceph_monc_init(&client->monc, client); 587 if (err < 0) 588 goto fail_mempool; 589 err = ceph_osdc_init(&client->osdc, client); 590 if (err < 0) 591 goto fail_monc; --- 25 unchanged lines hidden (view full) --- 617{ 618 dout("destroy_client %p\n", client); 619 620 /* unmount */ 621 ceph_mdsc_stop(&client->mdsc); 622 ceph_monc_stop(&client->monc); 623 ceph_osdc_stop(&client->osdc); 624 |
625 ceph_adjust_min_caps(-client->min_caps); 626 |
|
622 ceph_debugfs_client_cleanup(client); 623 destroy_workqueue(client->wb_wq); 624 destroy_workqueue(client->pg_inv_wq); 625 destroy_workqueue(client->trunc_wq); 626 627 if (client->msgr) 628 ceph_messenger_destroy(client->msgr); 629 mempool_destroy(client->wb_pagevec_pool); --- 390 unchanged lines hidden --- | 627 ceph_debugfs_client_cleanup(client); 628 destroy_workqueue(client->wb_wq); 629 destroy_workqueue(client->pg_inv_wq); 630 destroy_workqueue(client->trunc_wq); 631 632 if (client->msgr) 633 ceph_messenger_destroy(client->msgr); 634 mempool_destroy(client->wb_pagevec_pool); --- 390 unchanged lines hidden --- |