Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 190533 | Differences between
and this patch

Collapse All | Expand All

(-)src/afs/LINUX/osi_vfsops.c.org (-3 / +3 lines)
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;
(-)src/afs/LINUX/osi_vnodeops.c.org (-3 lines)
Lines 640-648 Link Here
640
  .mmap =	afs_linux_mmap,
640
  .mmap =	afs_linux_mmap,
641
  .open =	afs_linux_open,
641
  .open =	afs_linux_open,
642
  .flush =	afs_linux_flush,
642
  .flush =	afs_linux_flush,
643
#ifdef AFS_LINUX26_ENV
644
  .sendfile =   generic_file_sendfile,
645
#endif
646
  .release =	afs_linux_release,
643
  .release =	afs_linux_release,
647
  .fsync =	afs_linux_fsync,
644
  .fsync =	afs_linux_fsync,
648
  .lock =	afs_linux_lock,
645
  .lock =	afs_linux_lock,

Return to bug 190533