read.c (62ed948cb1405fe95d61d8c6445c102e0c9da0a6) read.c (266bee88699ddbde42ab303bbc426a105cc49809)
1/*
2 * linux/fs/nfs/read.c
3 *
4 * Block I/O for NFS
5 *
6 * Partial copy of Linus' read cache modifications to fs/nfs/file.c
7 * modified for async RPC by okir@monad.swb.de
8 *

--- 697 unchanged lines hidden (view full) ---

706 nfs_rdata_mempool = mempool_create_slab_pool(MIN_POOL_READ,
707 nfs_rdata_cachep);
708 if (nfs_rdata_mempool == NULL)
709 return -ENOMEM;
710
711 return 0;
712}
713
1/*
2 * linux/fs/nfs/read.c
3 *
4 * Block I/O for NFS
5 *
6 * Partial copy of Linus' read cache modifications to fs/nfs/file.c
7 * modified for async RPC by okir@monad.swb.de
8 *

--- 697 unchanged lines hidden (view full) ---

706 nfs_rdata_mempool = mempool_create_slab_pool(MIN_POOL_READ,
707 nfs_rdata_cachep);
708 if (nfs_rdata_mempool == NULL)
709 return -ENOMEM;
710
711 return 0;
712}
713
714void __exit nfs_destroy_readpagecache(void)
714void nfs_destroy_readpagecache(void)
715{
716 mempool_destroy(nfs_rdata_mempool);
717 if (kmem_cache_destroy(nfs_rdata_cachep))
718 printk(KERN_INFO "nfs_read_data: not all structures were freed\n");
719}
715{
716 mempool_destroy(nfs_rdata_mempool);
717 if (kmem_cache_destroy(nfs_rdata_cachep))
718 printk(KERN_INFO "nfs_read_data: not all structures were freed\n");
719}