File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -579,8 +579,8 @@ nfsd_file_cache_init(void)
579
579
if (nfsd_file_hashtbl )
580
580
return 0 ;
581
581
582
- nfsd_file_hashtbl = kcalloc (NFSD_FILE_HASH_SIZE ,
583
- sizeof (* nfsd_file_hashtbl ), GFP_KERNEL );
582
+ nfsd_file_hashtbl = kvzalloc ( array_size (NFSD_FILE_HASH_SIZE ,
583
+ sizeof (* nfsd_file_hashtbl )) , GFP_KERNEL );
584
584
if (!nfsd_file_hashtbl ) {
585
585
pr_err ("nfsd: unable to allocate nfsd_file_hashtbl\n" );
586
586
goto out_err ;
@@ -646,7 +646,7 @@ nfsd_file_cache_init(void)
646
646
nfsd_file_slab = NULL ;
647
647
kmem_cache_destroy (nfsd_file_mark_slab );
648
648
nfsd_file_mark_slab = NULL ;
649
- kfree (nfsd_file_hashtbl );
649
+ kvfree (nfsd_file_hashtbl );
650
650
nfsd_file_hashtbl = NULL ;
651
651
goto out ;
652
652
}
@@ -710,7 +710,7 @@ nfsd_file_cache_shutdown(void)
710
710
fsnotify_wait_marks_destroyed ();
711
711
kmem_cache_destroy (nfsd_file_mark_slab );
712
712
nfsd_file_mark_slab = NULL ;
713
- kfree (nfsd_file_hashtbl );
713
+ kvfree (nfsd_file_hashtbl );
714
714
nfsd_file_hashtbl = NULL ;
715
715
}
716
716
You can’t perform that action at this time.
0 commit comments