diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifsfs.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index c3ef1c0d0e68..4197a5043f13 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -699,8 +699,7 @@ cifs_init_inodecache(void) | |||
699 | static void | 699 | static void |
700 | cifs_destroy_inodecache(void) | 700 | cifs_destroy_inodecache(void) |
701 | { | 701 | { |
702 | if (kmem_cache_destroy(cifs_inode_cachep)) | 702 | kmem_cache_destroy(cifs_inode_cachep); |
703 | printk(KERN_WARNING "cifs_inode_cache: error freeing\n"); | ||
704 | } | 703 | } |
705 | 704 | ||
706 | static int | 705 | static int |
@@ -778,13 +777,9 @@ static void | |||
778 | cifs_destroy_request_bufs(void) | 777 | cifs_destroy_request_bufs(void) |
779 | { | 778 | { |
780 | mempool_destroy(cifs_req_poolp); | 779 | mempool_destroy(cifs_req_poolp); |
781 | if (kmem_cache_destroy(cifs_req_cachep)) | 780 | kmem_cache_destroy(cifs_req_cachep); |
782 | printk(KERN_WARNING | ||
783 | "cifs_destroy_request_cache: error not all structures were freed\n"); | ||
784 | mempool_destroy(cifs_sm_req_poolp); | 781 | mempool_destroy(cifs_sm_req_poolp); |
785 | if (kmem_cache_destroy(cifs_sm_req_cachep)) | 782 | kmem_cache_destroy(cifs_sm_req_cachep); |
786 | printk(KERN_WARNING | ||
787 | "cifs_destroy_request_cache: cifs_small_rq free error\n"); | ||
788 | } | 783 | } |
789 | 784 | ||
790 | static int | 785 | static int |
@@ -819,13 +814,8 @@ static void | |||
819 | cifs_destroy_mids(void) | 814 | cifs_destroy_mids(void) |
820 | { | 815 | { |
821 | mempool_destroy(cifs_mid_poolp); | 816 | mempool_destroy(cifs_mid_poolp); |
822 | if (kmem_cache_destroy(cifs_mid_cachep)) | 817 | kmem_cache_destroy(cifs_mid_cachep); |
823 | printk(KERN_WARNING | 818 | kmem_cache_destroy(cifs_oplock_cachep); |
824 | "cifs_destroy_mids: error not all structures were freed\n"); | ||
825 | |||
826 | if (kmem_cache_destroy(cifs_oplock_cachep)) | ||
827 | printk(KERN_WARNING | ||
828 | "error not all oplock structures were freed\n"); | ||
829 | } | 819 | } |
830 | 820 | ||
831 | static int cifs_oplock_thread(void * dummyarg) | 821 | static int cifs_oplock_thread(void * dummyarg) |