mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] mm: kill kmem_cache_t usage
We have struct kmem_cache now so use it instead of the old typedef. Signed-off-by: Pekka Enberg <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b5d8ca7c50
commit
fcc234f888
4 changed files with 10 additions and 8 deletions
|
|
@ -2119,7 +2119,7 @@ failed:
|
|||
return err;
|
||||
}
|
||||
|
||||
static kmem_cache_t *shmem_inode_cachep;
|
||||
static struct kmem_cache *shmem_inode_cachep;
|
||||
|
||||
static struct inode *shmem_alloc_inode(struct super_block *sb)
|
||||
{
|
||||
|
|
@ -2139,7 +2139,8 @@ static void shmem_destroy_inode(struct inode *inode)
|
|||
kmem_cache_free(shmem_inode_cachep, SHMEM_I(inode));
|
||||
}
|
||||
|
||||
static void init_once(void *foo, kmem_cache_t *cachep, unsigned long flags)
|
||||
static void init_once(void *foo, struct kmem_cache *cachep,
|
||||
unsigned long flags)
|
||||
{
|
||||
struct shmem_inode_info *p = (struct shmem_inode_info *) foo;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue