Lines 263-269
Link Here
|
263 |
|
263 |
|
264 |
|
264 |
|
265 |
#if defined(STRUCT_SUPER_HAS_ALLOC_INODE) |
265 |
#if defined(STRUCT_SUPER_HAS_ALLOC_INODE) |
266 |
static kmem_cache_t *afs_inode_cachep; |
266 |
static struct kmem_cache *afs_inode_cachep; |
267 |
|
267 |
|
268 |
static struct inode * |
268 |
static struct inode * |
269 |
afs_alloc_inode(struct super_block *sb) |
269 |
afs_alloc_inode(struct super_block *sb) |
Lines 288-294
Link Here
|
288 |
} |
288 |
} |
289 |
|
289 |
|
290 |
static void |
290 |
static void |
291 |
init_once(void * foo, kmem_cache_t * cachep, unsigned long flags) |
291 |
init_once(void * foo, struct kmem_cache * cachep, unsigned long flags) |
292 |
{ |
292 |
{ |
293 |
struct vcache *vcp = (struct vcache *) foo; |
293 |
struct vcache *vcp = (struct vcache *) foo; |
294 |
|
294 |
|
Lines 309-315
Link Here
|
309 |
afs_inode_cachep = kmem_cache_create("afs_inode_cache", |
309 |
afs_inode_cachep = kmem_cache_create("afs_inode_cache", |
310 |
sizeof(struct vcache), |
310 |
sizeof(struct vcache), |
311 |
0, SLAB_HWCACHE_ALIGN | SLAB_RECLAIM_ACCOUNT, |
311 |
0, SLAB_HWCACHE_ALIGN | SLAB_RECLAIM_ACCOUNT, |
312 |
init_once, NULL); |
312 |
init_once); |
313 |
if (afs_inode_cachep == NULL) |
313 |
if (afs_inode_cachep == NULL) |
314 |
return -ENOMEM; |
314 |
return -ENOMEM; |
315 |
return 0; |
315 |
return 0; |