Commit 2f74991
nfsd: Simplify the allocation of slab caches in nfsd_file_cache_init
Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Acked-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent 10bcc2f commit 2f74991
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
726 | | - | |
| 725 | + | |
727 | 726 | | |
728 | 727 | | |
729 | 728 | | |
730 | 729 | | |
731 | 730 | | |
732 | | - | |
733 | | - | |
| 731 | + | |
734 | 732 | | |
735 | 733 | | |
736 | 734 | | |
| |||
0 commit comments