aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c20
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)
699static void 699static void
700cifs_destroy_inodecache(void) 700cifs_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
706static int 705static int
@@ -778,13 +777,9 @@ static void
778cifs_destroy_request_bufs(void) 777cifs_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
790static int 785static int
@@ -819,13 +814,8 @@ static void
819cifs_destroy_mids(void) 814cifs_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
831static int cifs_oplock_thread(void * dummyarg) 821static int cifs_oplock_thread(void * dummyarg)